note 35373 added to function.session-destroy

From: Date: Thu, 28 Aug 2003 21:39:54 +0000
Subject: note 35373 added to function.session-destroy
Groups: php.notes 
Request: Send a blank email to php-notes+get-55266@lists.php.net to get a copy of this message
It seems to me that a lot of people have problems with deleting cookies. What works for me, and as far as I know I've seen this method all over the internet: setcookie("some_name", "", time() - 3600); Leave all fiels after time to there default values, else it probably won't work. Do not give any value with the setcookie function, this is also useless because you want to get rid of the cookie anyway. Also, IE and netscape heve different ways of cookiehandling, so make sure you test your page in both browsers. ---- Manual Page -- http://www.php.net/manual/en/function.session-destroy.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+35373 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+35373&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+35373&report=yes

« previous php.notes (#55266) next »