|  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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
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-2021 The PHP Group
All rights reserved.
Last updated: Sun Sep 26 04:03:36 2021 UTC