Re: Having a problem with sessions?

From: Date: Mon, 21 Jan 2002 09:20:45 +0000
Subject: Re: Having a problem with sessions?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-81337@lists.php.net to get a copy of this message
Henrik Hudson wrote: SNIP
_____________________________ session_start(); if (!isset($HTTP_SESSION_VARS[count])) {
    $HTTP_SESSION_VARS[count] = 0;
} else {
    $HTTP_SESSION_VARS[count]++;
} //Print the counter echo "Counter is now: $HTTP_SESSION_VARS[count];\n<br>\n"; echo "Let's go to another <a href=\"sessions.php\">page</a>...<br><br>"; _______________________________ On my box at home running PHP 4.0.6 it works great. On the work server running PHP 4.0.6 it doesn't work. Just keeps setting count to 0. SNIP
I don't see any significant options here. What is your session save handlers?
The only major difference that I could find in the php.ini file is that at home I have register globals off and at work they are on? Even with register globals on, you can still use the $HTTP_*_VARS, right?
Yes. It's supposed to work, but could you try without register_globals? If it works without register_globals, submit bug report. -- Yasuo Ohgaki

« previous php.general (#81337) next »