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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 03 05:01:38 2025 UTC