note 5906 deleted from session_destroy by ronabop

From: Date: Fri, 18 Aug 2000 03:32:37 +0000
Subject: note 5906 deleted from session_destroy by ronabop
Groups: php.notes 
Request: Send a blank email to php-notes+get-2277@lists.php.net to get a copy of this message
Help! I can't destroy the session. Enviroment is PHP4 on Linux/Apache. Function is: function closeSession() { // The next source code line is needed to avoid a warning saying the session is uninitialized, but I don't want that line there! // And anyway, it doesn't destroy my session. // session_start(); // Displays the session ID, I can see it! global $PHPSESSID; print("ID " . $PHPSESSID); // To close the session if (session_destroy()) { echo "<br>Session destroyed<br>"; } else { // It always displays NOT destroyed echo "<br>Session NOT destroyed<br>"; } // Displays the session ID, I can see it! print("ID " . $PHPSESSID); }

« previous php.notes (#2277) next »