Bug #11569: session_register() not working after session_unset(); session_destroy();

From: Date: Tue, 19 Jun 2001 23:47:48 +0000
Subject: Bug #11569: session_register() not working after session_unset(); session_destroy();
Groups: php.dev 
Request: Send a blank email to php-dev+get-57312@lists.php.net to get a copy of this message
From: antipode@thpoon.com Operating system: Solaris 8 / Sparc PHP version: 4.0.5 PHP Bug Type: *Session related Bug description: session_register() not working after session_unset(); session_destroy(); I adopted most of this little script from user feedback in the session_unset()'s annotations. I ran into the same problem, and think that it demonstrates it well. <?php function dummy() { global $a; session_unset(); $a= 'foo'; echo "<br>2. ".session_register('a'); } session_start(); $a= 'foo'; session_register('a'); echo "<br>1. $a"; dummy(); echo "<br>3. $a"; ?> If you run it, you'll see that, even though the second session_register() returns TRUE, $a is not registered again, and remains unset. This bug does not allow me to be paranoid enough coding a login-protected website. Thanks. -- Edit Bug report at: http://bugs.php.net/?id=11569&edit=1

« previous php.dev (#57312) next »