On Saturday, June 15, 2002 at 12:53:47 AM, Zlutarch G. wrote: > The session ID is the same for a given session, that means the server knows > its the same session. And since I get the value "1" each time, I can see > that the $_SESSION["var"] is a global variable with a value of "1". But it > seems that once the script is finished, this variable runs out of scope! A > session variable should persist for the duration of the session. It should > not run out of scope like this. Could someone with more experience tell me > what am I doing wrong? Thanks in advance.
Your code looks ok so I'm guessing that you are just refreshing this page to see if the session variables persist. If that is the case then of course you're not seeing them persist. In order for the page to import the current session it must know what the session id is. Try putting a link on that page that links to the same page. Click on the link and you should find that the session variable now persists. -- Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php