Re: Using $HTTP_SESSION_VARS with register_globals On
| From: | Chuck Hagenbuch | Date: | Mon, 21 May 2001 21:45:14 +0000 |
| Subject: | Re: Using $HTTP_SESSION_VARS with register_globals On | ||
| References: | 1 2 3 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-56133@lists.php.net to get a copy of this message | ||
Quoting Andrei Zmievski <andrei@ispi.net>:
> How about this scenario -- register_globals is on, session is loaded,
> $HTTP_SESSION_VARS['foo'] and $foo contain the same value, then user
> changes $foo, thinking it will be saved. But if you say
> $HTTP_SESSION_VARS value takes precedence, then his changes are lost --
> not too intuitive.
No, it's not. The other option is, if register_globals is on, to make $foo and
$HTTP_SESSION_VARS['foo'] references pointing to the same value (well, one
points to the other; I don't _think_ it matters which).
However it's solved, it'd be _really_ nice if at the very least, code written
for the register_globals Off case worked all the time, since that's the more
portable option anyway.
-chuck
--
Charles Hagenbuch, <chuck@horde.org>
Black and white and grey, all the shades of truth.