note 32221 added to function.session-destroy

From: Date: Tue, 20 May 2003 21:56:29 +0000
Subject: note 32221 added to function.session-destroy
Groups: php.notes 
Request: Send a blank email to php-notes+get-48688@lists.php.net to get a copy of this message
for me the best way to kill a session is this... my config is: apache 1.3, php 4.3, no cokies, transid=yes if ($HTTP_POST_VARS) // or http_get_vars { // get the vars } unset($HTTP_POST_VARS); unset($HTTP_SESSION_VARS); unset($HTTP_GET_VARS); unset($_REQUEST); unset($_SESSION); unset($_POST); unset($_GET); session_start(); session_unset(); session_destroy(); session_start(); // init the code with a new session id ---- Manual Page -- http://www.php.net/manual/en/function.session-destroy.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+32221 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+32221&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+32221&report=yes

« previous php.notes (#48688) next »