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
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: lrvazquez at megared dot net dot mx
New email:
PHP Version: OS:

 

 [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: Fri Apr 19 08:01:28 2024 UTC