Re: [PHP] What is the difference between session_unset() and session_destroy()?
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" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > 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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] What is the difference between session_unset() and session_destroy()?
Erm...I believe session_unset unsets all variables in the session, leaving the session itself intact. While session_destroy deletes the entire session and all variables in it. But I'm not so sure. "Carfield Yim" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > 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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] What is the difference between session_unset() and session_destroy()?
>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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]