PHP 4.2.3 || Can't unset $_SESSION!
| From: | CF High | Date: | Sun, 28 Mar 2004 15:31:05 +0000 |
| Subject: | PHP 4.2.3 || Can't unset $_SESSION! | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-181628@lists.php.net to get a copy of this message | ||
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
--