php.net |  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.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
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;
    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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

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

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

S. Straka

 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Sun May 26 18:01:26 2019 UTC