Re: PHP 4.2.3 || Can't unset $_SESSION!

From: Date: Sun, 28 Mar 2004 18:37:56 +0000
Subject: Re: PHP 4.2.3 || Can't unset $_SESSION!
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-181634@lists.php.net to get a copy of this message
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" <noah@newminddesign.com> skrev i meddelandet news:20040328152907.8502.qmail@pb1.pair.com... > 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 > > > > --

« previous php.general (#181634) next »