Re: [PHP] Passing variables between pages



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
.



Relevant Pages

  • Re: [PHP] Passing variables between pages
    ... tedd wrote: ... The problem was not how to pass variables between requests, but rather how to variables between pages -- as the subject line indicates. ... 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. ...
    (php.general)
  • Re: [PHP] Passing variables between pages
    ... The problem was not how to pass variables between requests, but rather how to variables between pages -- as the subject line indicates. ... 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. ... 3: Passing Variables Between Requests. ...
    (php.general)
  • Re: [PHP] Passing variables between pages
    ... Sessions are used to pass dynamic content between pages. ... tedd wrote: ... had a script that contained far more data than what I wanted to break ... technique instead of using sessions. ...
    (php.general)
  • Re: Expect REal Time Logging
    ... I need to have a "real time" log of my spawned sessions, ... This means that if the script terminates ... i.e. when I spawn a telnet session, the data is sent across my network ...
    (comp.lang.tcl)
  • Re: Expect REal Time Logging
    ... I need to have a "real time" log of my spawned sessions, ... This means that if the script terminates ... i.e. when I spawn a telnet session, the data is sent across my network ...
    (comp.lang.tcl)