It should be
unset($_SESSION['checker']);

try to use var_dump($_SESSSION); on another page, called test3.php, and let
us know what happends..

also, I hope you remember to use session_start(); and no
session_write_close(); on test2.php..

Otherwise, please mail me the files: dvdmandt at telia dot com...
-- 
// DvDmanDT
MSN: dvdmandt€hotmail.com
Mail: dvdmandt€telia.com
"Cf High" <[EMAIL PROTECTED]> skrev i meddelandet
news:[EMAIL PROTECTED]
> Hey all.
>
> Strange problem here.
>
> I'm running on apache 1.3.26 & php 4.2.3.
>
> In a test page, test1.php, I set $_SESSION['checker'] = 1;
>
> In another test page, test2.php, I unset($_SESSION['checker']);
>
> When I print_r($_SESSION) in test1.php, $_SESSION['checker'] is still set
&
> still equals 1!
>
> I've tried session_unregister($checker),
> session_unregister($_SESSION['checker']), unset($checker), etc. -- none of
> them unset this particular session var.  Very strange behavior.
> Interestingly, I can set $_SESSION['checker'] = 0 (instead of 1) in
> test2.php & that works fine when I print_r($_SESSION) in test1.php.
>
> Any clues as to why this might be happening?
>
> FYI, register globals is set to ON.
>
> Let me know if you need further details.....
>
> TIA,
>
> --Noah
>
>
>
> --

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to