Re: [PHP-DEV] Session variables confusion

2001-11-10 Thread Sebastian Bergmann
Jon Parise wrote: > What about $GLOBALS['HTTP_SESSION_VARS']['a']? Actually I'm searching for a way to access session variables that works with both register_globals settings. The above line works with register_globals = Off, but no On. -- Sebastian Bergmann http://sebastian-bergmann

Re: [PHP-DEV] Session variables confusion

2001-11-10 Thread Jon Parise
On Sun, Nov 11, 2001 at 12:02:56AM +0100, Sebastian Bergmann wrote: > Environment: Current CVS on Win32. > > session_register('a'); > session_register('b'); > session_register('c'); > > echo 'GLOBALS[a]: ' . ++$GLOBALS['a'] . ''; > echo '_SESSI

[PHP-DEV] Session variables confusion

2001-11-10 Thread Sebastian Bergmann
Environment: Current CVS on Win32. '; echo '_SESSION[b]: ' . ++$_SESSION['b'] . ''; echo 'HTTP_SESSION_VARS[c]: ' . ++$HTTP_SESSION_VARS['c'] . ''; ?> register_globals = On -> Only ++$GLOBALS['a'] is effective register_globals = Off -> ++$GLOBALS['a'] is