From:             roberto_stivanello at libero dot it
Operating system: Windows NT WEBS119 5.2 build 379
PHP version:      4.3.7
PHP Bug Type:     Session related
Bug description:  session_destroy() returns "session object destruction failed"

Description:
------------
Same problem as previous notified bugs, currently marked "closed".

Errore arise in production (webserver is ISP owned).

No problem during test on "localhost" on my machine: software works
properly under ISS/WinXP.

Therefore I guess I cannot try last CVS solution: if you think it is
available, tell me, and I'll endorse your advice to my ISP.

Do you think I should have appended this report to any of the previous
ones instead of opening a new one? To which one, in your opinion? (If so,
pardon me).

Thanks.



Reproduce code:
---------------
<?php # Script 12.13 - logoutadm.php
require_once ('../includes/config.inc');       // Include the
configuration file for error management and such.
require_once ('../authentication.php');        // connects to mysql +
defines functions + ob_start() + session_start()
include_once ('../includes/admin_header.inc'); // administrator page
header
?>
<H2 id=essentials><A href="/" rel=bookmark>Logout</A></H2>
<?php
if (!isset($_SESSION['usera'])) {
        ob_end_clean(); // Delete the buffer.
        header ("Location:  http://"; . $_SERVER['HTTP_HOST'] . "xxxxx.php");
      exit(); // Quit the script.
} else { // Logout the user.
      echo "<h3>Session = " . session_id() . "</h3>"; // for test purpose
        $_SESSION = array(); // Destroy the variables.
        session_destroy(); // Destroy the session itself.
      setcookie (session_name(), '', time()-300, '/', '', 0); // Destroy
the cookie.
}
echo "<h3>Logout successful! </h3>"; // Print a customized message.
?>
<?php // Include the HTML footer.
include ('../includes/admin_footer.inc');
?>


Expected result:
----------------
As in test: user logged out, with no error displayed.

Actual result:
--------------
"session object destruction failed" error returned and displayed by error
handler routine.

-- 
Edit bug report at http://bugs.php.net/?id=29419&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=29419&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=29419&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=29419&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=29419&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=29419&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=29419&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=29419&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=29419&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=29419&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=29419&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=29419&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=29419&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29419&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=29419&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=29419&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=29419&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=29419&r=float

Reply via email to