note 17363 added to function.setcookie
| From: | me at animelayer dot net | Date: | Wed, 05 Dec 2001 21:48:57 +0000 |
| Subject: | note 17363 added to function.setcookie | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-21650@lists.php.net to get a copy of this message | ||
About deleting cookies:
I had my homepage hosted on a Windows server and for testing purposes on my own PC (MacOS X). On
both systems 'setcookie ("cookiename");' worked fine to delete my cookies.
Recently, I went to a Linux host and suddenly I wasn't able to load the pages which delete
cookies anymore.
I changed the function to 'setcookie ("cookiename","",time() -
3600,'/',"cookiepath");' and everything worked fine again.
No idea what's the cause. Just wanted to let you know.
--
http://www.php.net/manual/en/function.setcookie.php
http://master.php.net/manage/user-notes.php?action=edit+17363
http://master.php.net/manage/user-notes.php?action=delete+17363
http://master.php.net/manage/user-notes.php?action=reject+17363