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
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]