Re: What is the difference between session_unset() and session_destroy()?
| From: | Yasuo Ohgaki | Date: | Thu, 29 Mar 2001 09:28:10 +0000 |
| Subject: | Re: What is the difference between session_unset() and session_destroy()? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-46047@lists.php.net to get a copy of this message | ||
Anyway, session_unset() only unset session vars in memory, but session_destroy()
deletes session vars from storage.
i.e. You can free storage with session_destroy() without waiting garbage
collection.
Unless programmer discards session id, session data will be created with the
same session id, though.
--
Yasuo Ohgaki
"Carfield Yim" <carfield@programmer.net> wrote in message
news:3AC2C7DA.7D75C397@programmer.net...
> From the manual,
> session_unset ¡X Free all session variables
> session_destroy ¡X Destroys all data registered to a session
>
> What do this document exactly mean?
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>