Re: session_register warnings
| From: | Mike Hall | Date: | Fri, 11 Oct 2002 18:19:50 +0000 |
| Subject: | Re: session_register warnings | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-89365@lists.php.net to get a copy of this message | ||
Now I'm not really anyone special - just another user, as it were, but I do
use the session module on a daily basis as part of my job. FWIW, I agree
with Sascha on this one. A user should be able to work with a session
variable in global scope all the time, or not at all. Not some mish-mash of
both.
As it stands at the moment (with register_globals off), variables can be
pulled into a session from global scope, but they cannot be pulled out again
from global scope - you have to use the $_SESSION array. I find this counter
intuative... if I can put them into a session that way, why can't I pull
them out again that way?
Mike