[thelist] [PHP] $_SESSION madness

James Denholm-Price j.denholmprice at gmail.com
Fri Oct 22 14:39:03 CDT 2004

On Fri, 22 Oct 2004 15:43:31 +1300, Paul Bennett wrote:
> ...
> My understanding is that setting the session array to an empty array in
> fact replaces the existing array values with nothing, hence 'emptying'
> the session, so could the session persistence be caused by the session
> cookie. I'm not too up with the play on session cookies, but my
> understanding is that the setcookie code above will set the session
> cookie for the domain to a time in the past, this 'unsetting' the cookie
> any ideas?

Perhaps try session_destroy
<http://uk.php.net/manual/en/function.session-destroy.php> Otherwise
I'd recommend reading the PHP session manual pages
<http://uk.php.net/manual/en/ref.session.php>  ... not reddit myself
but other pages are always informative.


More information about the thelist mailing list