#19540 [NEW]: session_destroy() fails when session_name() is used

From: Date: Sat, 21 Sep 2002 14:45:54 +0000
Subject: #19540 [NEW]: session_destroy() fails when session_name() is used
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-19986@lists.php.net to get a copy of this message
From: bmertg@yahoo.com Operating system: Win2000Pro, Redhead Linux PHP version: 4.2.2 PHP Bug Type: Session related Bug description: session_destroy() fails when session_name() is used 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 bug report at http://bugs.php.net/?id=19540&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=19540&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=19540&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=19540&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=19540&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=19540&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=19540&r=support Expected behavior: http://bugs.php.net/fix.php?id=19540&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=19540&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=19540&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=19540&r=globals

« previous php.bugs (#19986) next »