note 53589 deleted from function.session-destroy by betz

From: Date: Mon, 06 Jun 2005 22:03:45 +0000
Subject: note 53589 deleted from function.session-destroy by betz
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-90027@lists.php.net to get a copy of this message
Note Submitter: SammyGunnz ---- Nick wrote: ----------- For deleting the session cookie: setcookie( session_name() ,"",0,"/"); that worked for me. When I ran that function without the last parameter, it didn't work. If you leave out that parameter( domain ), it will default to the current directory, which isn't always the same as the session cookie's domain. nick ----------- Nick is correct. This is a very simple way of killing the session cookie.

« previous php.notes (#90027) next »