note 35012 added to function.session-destroy

From: Date: Fri, 15 Aug 2003 13:36:06 +0000
Subject: note 35012 added to function.session-destroy
Groups: php.notes 
Request: Send a blank email to php-notes+get-54193@lists.php.net to get a copy of this message
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 ---- Manual Page -- http://www.php.net/manual/en/function.session-destroy.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+35012 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+35012&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+35012&report=yes

« previous php.notes (#54193) next »