At 2:47 PM +0100 9/22/08, Nathan Rixham wrote:
tedd wrote:
-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

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

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to