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 Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
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

Pull Requests

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-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 06:01:30 2024 UTC