php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #6488 session_unregister and session_destroy don't work
Submitted: 2000-09-01 13:25 UTC Modified: 2000-10-28 23:30 UTC
From: lrvazquez at megared dot net dot mx Assigned:
Status: Closed Package: Session related
PHP Version: 4.0.2 OS: Solaris 7.0, FreeBSD 4.1
Private report: No CVE-ID: None
 [2000-09-01 13:25 UTC] lrvazquez at megared dot net dot mx
Well,

I have seen many reports about this.

I hope the fix to this. 

When I do session_unregister and session_destroy nothing happens.
The file is there with the information of the variables registered.

Code:

First script :
-------------------------
session_start();
$sesname = "name" ;
session_register("sesname");
-------------------------

Second script:
-------------------------
session_start();
if ($exit ) {
    session_unregister("sesname");
    session_destroy();
}
--------------------------


configure php...
'./configure' '--with-apache=/opt/apache_1.3.12' '--enable-versioning' '--without-mysql'
'--with-sybase=/usr/local/freetds' '--without-gd' '--enable-track-vars'
--with-system-regex' '--enable-trans-id'

session.save_handler = files
session.save_path = /tmp                                                                      
session.serialize_handler = php
session.use_cookies = Off

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-10-03 03:02 UTC] waldschrott@php.net
Does replacing $exit with TRUE work for you? Is this problem still present?
 [2000-10-28 23:30 UTC] sniper@php.net
No feedback. And update to PHP 4.0.3pl1. Reopen this bug report
if problem still exists with it. 

--Jani
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 22:01:29 2024 UTC