Re: Passing variables between pages
| From: | tedd | Date: | Mon, 22 Sep 2008 14:08:02 +0000 |
| Subject: | Re: Passing variables between pages | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-280681@lists.php.net to get a copy of this message | ||
At 2:47 PM +0100 9/22/08, Nathan Rixham wrote:
tedd wrote:Nathan: 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 -- ------- http://sperling.com http://ancientstones.com http://earthstones.com-Stut and Nathan: The problem was not how to pass variables between requests, but rather how to variables between pages -- as the subject line indicates.ahhhhhhhhhhhhhhhh! now I follow; and surely tedd what you say is indeed the best way of achieving this. cheers for taking the time