PHP 4.0 Bug #9972: after session_destroy & session_start variable still has a value
| From: | sstraka at nextra dot sk | Date: | Sat, 24 Mar 2001 19:16:56 +0000 |
| Subject: | PHP 4.0 Bug #9972: after session_destroy & session_start variable still has a value | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-49894@lists.php.net to get a copy of this message | ||
From: sstraka@nextra.sk
Operating system: Win98 SE, Linux
PHP version: 4.0.4pl1
PHP Bug Type: *Session related
Bug description: after session_destroy & session_start variable still has a value
I've used session_register("sErr") to register session variable. then it's used
in following function:
function kBan_error() {
global $HTTP_SESSION_VARS;
if($HTTP_SESSION_VARS['sErr']):
echo "<span
class=\"error\">".$HTTP_SESSION_VARS['sErr']."</span>";
endif;
$HTTP_SESSION_VARS['sErr'] = "";
}
on another site the $HTTP_SESSION_VARS['sErr'] is empty. after calling session_destroy()
is the variable empty again. but after calling session_start() in the same browser window, the
variable sets to latest value that it's been filled with. calling the function kBan_error()
twice in a row with defined variable $HTTP_SESSION_VARS['sErr'] causes only one appearance
of the error message.
--
Edit Bug report at: http://bugs.php.net/?id=9972&edit=1