#36872 [Opn]: session_destroy() fails after call to session_regenerate_id()

From: Date: Tue, 28 Mar 2006 12:10:42 +0000
Subject: #36872 [Opn]: session_destroy() fails after call to session_regenerate_id()
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-94988@lists.php.net to get a copy of this message
 ID:               36872
 Updated by:       mike@php.net
 Reported By:      chris at dented-planet dot net
 Status:           Open
 Bug Type:         Session related
 Operating System: mac os x 10.3.9
 PHP Version:      5.1.2
 New Comment:

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.



Previous Comments:
------------------------------------------------------------------------

[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


Thread (4 messages)

« previous php.bugs (#94988) next »