From:             [EMAIL PROTECTED]
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

Reply via email to