Re: Resetting a session variable
| From: | Casey | Date: | Sun, 03 Feb 2008 18:33:22 +0000 |
| Subject: | Re: Resetting a session variable | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-268600@lists.php.net to get a copy of this message | ||
On Feb 3, 2008 10:25 AM, Per Jessen <per@computer.org> wrote:
> Ron Piggott wrote:
>
> > What is the command to reset a session variable --- essentially
> > deleting all of the values it contains? Ron
> >
>
> I haven't checked, but how about unset() ?
>
>
> /Per Jessen, Zürich
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
unset($_SESSION);
or
$_SESSION = array();
--
-Casey