php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #6319 session_destroy() does not work
Submitted: 2000-08-23 17:12 UTC Modified: 2000-10-28 01:38 UTC
From: kemal at clic dot nl Assigned:
Status: Closed Package: *General Issues
PHP Version: 4.0.1pl2 OS: Win98SE, NT4 SP6a
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: kemal at clic dot nl
New email:
PHP Version: OS:

 

 [2000-08-23 17:12 UTC] kemal at clic dot nl
Hi,

Session_destroy() does not seem to have any effect. 
The session file (sess_*) is not deleted, its content unchanged, and the next call to session_register() will retrieve previous values.

I am running the test under Win98SE (Apache 1.3.11)  and NT4SP6 (IIS 4.0),
my php.ini settings (register_globals, track_vars, session.*) are the default ones. 

I have included here three short php4 script which illustrate the problem
----------
<?php
session_register('my_string');
$my_string = 'Foo Bar';
echo "Part 1: ", $my_string;
?>
----------
<?php
session_register('my_string');
echo "Part 2: ", $my_string;
?>
----------
<?php
session_start();
$result = session_destroy();
session_register('my_string');
echo "Part 3: ", $my_string, "-", $result;
?>
----------

I noticed that some other folks have reported the same bug, 
but I am sending this to make it clear that it also happened on Win9x
(not just NT).

Thanks

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-10-03 03:03 UTC] waldschrott@php.net
this is dup without further information, #5231 reopened
 [2000-10-28 01:38 UTC] dbeu@php.net
fixed in cvs already.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun May 05 22:01:29 2024 UTC