Re: Resetting a session variable
| From: | Richard Heyes | Date: | Sun, 03 Feb 2008 19:30:18 +0000 |
| Subject: | Re: Resetting a session variable | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-268603@lists.php.net to get a copy of this message | ||
unset($_SESSION); or $_SESSION = array();This reset all of the session variables. To reset only one, try this: <?php
unset($_SESSION['key']);?> -- Richard Heyes http://www.websupportsolutions.co.uk Knowledge Base and Helpdesk software for £299 hosted for you - no installation, no maintenance, new features automatic and free