Re: how do you send a lot of data between scripts
- From: "P Pulkkinen" <perttu.POISTATAMA.pulkkinen@xxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 31 Jan 2007 13:44:21 +0200
"Gunnar G" <debian@xxxxxxxxx> kirjoitti
viestissä:iJ_vh.30820$E02.12529@xxxxxxxxxxxxxxxxxx
use sessions or shared memory functionsWhich one would you suggest (is easiest for me to use and learn)?
All I want to do is to send a bunch of arrays from one page to another.
That's all.
I don't comment shared memory functions, because i have not used them, but
session is anyway one easy and common way and you'll learn to love it, but
remember about sessions:
1) remember to START session => session_start() or if they are autostarted
in php.ini no problem
2) both scripts should be in same host (but directory doesn't matter)
3) you have a choice to make:
a) you pass session_id in EVERY necessary url, automagically(php.ini) or
manually
OR
b) it is stored to cookie and then users MUST have cookies enabled.
this seems to be default setting. this is safer but problem is if user has
disabled cookies
... or something like this...
.
- References:
- how do you send a lot of data between scripts
- From: Gunnar G
- Re: how do you send a lot of data between scripts
- From: Roy Kaldung
- Re: how do you send a lot of data between scripts
- From: Gunnar G
- how do you send a lot of data between scripts
- Prev by Date: Re: how do you send a lot of data between scripts
- Next by Date: Re: redirection question
- Previous by thread: Re: how do you send a lot of data between scripts
- Index(es):
Relevant Pages
|