Re: Passing variables between pages
| From: | Micah Gersten | Date: | Mon, 22 Sep 2008 16:00:56 +0000 |
| Subject: | Re: Passing variables between pages | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-280702@lists.php.net to get a copy of this message | ||
Sessions are used to pass dynamic content between pages. Your method is
passing static content.
Thank you,
Micah Gersten
onShore Networks
Internal Developer
http://www.onshore.com
tedd wrote:
> No problem.
>
> But here is what I would like you to consider, the next time you are
> thinking about using sessions to pass variables to the next script,
> try this technique instead.
>
> You see, a few months ago I was working with another programmer who
> had a script that contained far more data than what I wanted to break
> down into sessions to pass to my script. So I tried this and to my
> surprise it worked flawlessly.
>
> Then I thought "Where else could I use this?" and it seems that I can
> use this everywhere.
>
> Now, I've had three hours of sleep, so my mind may be more fuzzy than
> usual, but I can't think of an example where I can't use this
> technique instead of using sessions.
>
> If you can think of one, please tell me.
>
> Cheers,
>
> tedd
>