"Hassan El Forkani" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
> indeed it's not working properly,
> first of all please make sur the pages are not cashed send a header
> (Cache-control: NO cache) i'm not sure about the syntax so check the
manual
> then try to modify your code like this and tell us what happens:
>
> <?php
> if (!HTTP_SESSION_VARS['count'])
> {
> global $count;
> $count = 0;
> session_register ("count");

You don't need session_register() with $HTTP_SESSION_VARS. Just assign
vlaue. If you want to unregister, just use unset().

Using session_(un)register() with $HTTP_SESSION_VARS is tricky. So
don't use. (You can save lines, too)

--
Yasuo Ohgaki




-- 
PHP General 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