#19540 [Opn->Csd]: session_destroy() fails when session_name() is used

From: Date: Sat, 21 Sep 2002 14:49:00 +0000
Subject: #19540 [Opn->Csd]: session_destroy() fails when session_name() is used
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-19987@lists.php.net to get a copy of this message
ID: 19540 Updated by: nicos@php.net Reported By: bmertg@yahoo.com -Status: Open +Status: Closed Bug Type: Session related Operating System: Win2000Pro, Redhead Linux PHP Version: 4.2.2 New Comment: This bug has been fixed in CVS. In case this was a PHP problem, 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/. In case this was a documentation problem, the fix will show up soon at http://www.php.net/manual/. In case this was a PHP.net website problem, the change will show up on the PHP.net site and on the mirror sites in short time. Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2002-09-21 09:45:54] bmertg@yahoo.com Session is not destroyed with the code below. but when you remove the session_name() from both files it works properly. i tried on php v4.1.1+win2000 and php v4.2.2 on Linux. //anypage.php ob_start(); session_name('mySessID'); session_start(); ... //logoff.php ob_start(); session_name('mySessID'); session_start(); session_unset(); session_destroy(); header("Location: ".$host); ob_end_flush(); ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=19540&edit=1

« previous php.bugs (#19987) next »