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"" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> 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
>
>


-- 
PHP Windows 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]

Reply via email to