#36872 [Opn->Asn]: session_destroy() fails after call to session_regenerate_id()
| From: | tony2001@php.net | Date: | Sat, 15 Apr 2006 20:52:29 +0000 |
| Subject: | #36872 [Opn->Asn]: session_destroy() fails after call to session_regenerate_id() | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-95835@lists.php.net to get a copy of this message | ||
ID: 36872
Updated by: tony2001@php.net
Reported By: chris at dented-planet dot net
-Status: Open
+Status: Assigned
Bug Type: Session related
Operating System: mac os x 10.3.9
PHP Version: 5.1.2
-Assigned To:
+Assigned To: sas
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