#36872 [Asn->Csd]: session_destroy() fails after call to session_regenerate_id()
| From: | iliaa@php.net | Date: | Mon, 17 Apr 2006 23:30:37 +0000 |
| Subject: | #36872 [Asn->Csd]: session_destroy() fails after call to session_regenerate_id() | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-95908@lists.php.net to get a copy of this message | ||
ID: 36872
Updated by: iliaa@php.net
Reported By: chris at dented-planet dot net
-Status: Assigned
+Status: Closed
Bug Type: Session related
Operating System: mac os x 10.3.9
PHP Version: 5.1.2
Assigned To: sas
New Comment:
This bug has been fixed in CVS.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2006-03-28 14:10:40] mike@php.net
Adding
>>VCWD_ACCESS(buf, F_OK) == 0<< to
>>VCWD_UNLINK(buf) == -1)<< in mod_files' DESTROY function fixes the
warning, but the old session file still lingers around.
------------------------------------------------------------------------
[2006-03-27 13:30:46] chris at dented-planet dot net
Description:
------------
Calling session_destroy() after call to session_regenerate_id() results
in the failed session destruction and the following warning:
Warning: session_destroy() [function.session-destroy]: Session object
destruction failed...
If I remove the call to session_regenerate() then session_destroy()
works correctly.
Reproduce code:
---------------
<?php
ob_start()
session_start();
//some code
session_regenerate_id(true);
//some code
session_destroy();
ob_end_flush();
?>
Expected result:
----------------
Session should be destroyed
Actual result:
--------------
Warning: session_destroy() [function.session-destroy]: Session object
destruction failed...
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=36872&edit=1