note 35373 deleted from function.session-destroy by vincent
| From: | vincent@php.net | Date: | Thu, 28 Aug 2003 21:46:01 +0000 |
| Subject: | note 35373 deleted from function.session-destroy by vincent | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-55267@lists.php.net to get a copy of this message | ||
Note Submitter: webmaster@bpklichtengeluid.nl
----
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.