Re: Trying to understand sessions and using them to authenticate...

From: Date: Tue, 28 Aug 2007 14:56:23 +0000
Subject: Re: Trying to understand sessions and using them to authenticate...
References: 1 2 3 4 5 6 7  Groups: php.general 
Request: Send a blank email to php-general+get-261409@lists.php.net to get a copy of this message
Jason Pruim wrote:
One other question, to logout, can I just call a file that has session_destroy() and a header("Location: ???"); in it? Or should I do something else for logging out?
foreach (array_keys($_SESSION) as $key)
    unset($_SESSION[$key];
session_destroy(); -Stut -- http://stut.net/

« previous php.general (#261409) next »