note 32221 deleted from function.session-destroy by alindeman
| From: | alindeman@php.net | Date: | Tue, 20 May 2003 21:59:09 +0000 |
| Subject: | note 32221 deleted from function.session-destroy by alindeman | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-48689@lists.php.net to get a copy of this message | ||
Note Submitter:
----
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