note 12112 deleted from function.session-destroy by jimw
| From: | jimw@php.net | Date: | Fri, 07 Dec 2001 01:08:33 +0000 |
| Subject: | note 12112 deleted from function.session-destroy by jimw | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-21753@lists.php.net to get a copy of this message | ||
there is a simple way to clear all variables after destroying the session:
<?
session_start();
$arrSessions=$HTTP_SESSION_VARS;
session_destroy();
foreach ($arrSessions as $session_name => $session_value) {
unset($$session_name);
}
unset($arrSessions);
?>