Re: pb with register_globals
| From: | Yasuo Ohgaki | Date: | Thu, 12 Apr 2001 23:49:21 +0000 |
| Subject: | Re: pb with register_globals | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-6687@lists.php.net to get a copy of this message | ||
If you disable register_globals, use $HTTP_SESSION_VARS as normal variable.
For example,
$HTTP_SESSION_VARS['counter'] = 0;
unset($HTTP_SESSION_VARS['counter'];
isset($HTTP_SESSION_VARS['counter'];
No register()/unregister()/is_registered, is required.
Regards,
--
Yasuo Ohgaki
""Barraud, Stéphane"" <stephane.barraud@esc.messagemedia.com> wrote in
message
news:213433443777D41197FB00B0D020D94E085286@mmemail.0mme.com...
> Hi all,
>
> I'm using PHP 4.0.4pl1 on windows as CGI.
> I try to avoid to use register_globals = On.
> In my script I use only $HTTP_*_VARS variables to access forms fields.
>
> The problem is when I set register_globals = Off in php.ini, the session is
> not working any more, loosing session variables content.
>
> Should I consider this as a bug ?
>
> Steph
>
>