Hi Stuart, I tried your idea but it didn't work. When I used session_encode(), I got nothing! It seems that it's not being registered as a session variable. Any idea why that is the case?
Thanks, Zlutarch >From: Stuart Dallas <[EMAIL PROTECTED]> >Reply-To: Stuart Dallas <[EMAIL PROTECTED]> >To: [EMAIL PROTECTED] >Subject: Re: [PHP] PLEASE HELP! session variable fails to persist!! >Date: Sat, 15 Jun 2002 01:05:47 +0100 > >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 > _________________________________________________________________ Join the world’s largest e-mail service with MSN Hotmail. http://www.hotmail.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php