|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #9972 after session_destroy & session_start variable still has a value
Submitted: 2001-03-24 14:16 UTC Modified: 2001-06-18 19:43 UTC
From: sstraka at nextra dot sk Assigned:
Status: Not a bug Package: Session related
PHP Version: 4.0.4pl1 OS: Win98 SE, Linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: sstraka at nextra dot sk
New email:
PHP Version: OS:


 [2001-03-24 14:16 UTC] sstraka at nextra dot sk
I've used session_register("sErr") to register session variable. then it's used in following function:

function kBan_error() {
    global $HTTP_SESSION_VARS;
	echo "<span class=\"error\">".$HTTP_SESSION_VARS['sErr']."</span>";
    $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.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-06-14 23:31 UTC]
Please include complete but short example script into this bug report. 
 [2001-06-18 19:43 UTC]
User feedback:

Please ignore this "bug", it was a bogus.

S. Straka

PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Wed Aug 12 07:01:25 2020 UTC