note 107613 deleted from function.setcookie by tularis
| From: | tularis@php.net | Date: | Wed, 22 Feb 2012 21:00:08 +0000 |
| Subject: | note 107613 deleted from function.setcookie by tularis | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-186289@lists.php.net to get a copy of this message | ||
Note Submitter: Uri Even-Chen
----
Be careful when you delete cookies - the path and domain must be exactly the same as when the cookie
was created. I recommend to always specify the path and domain, for example "/" and
"example.com", otherwise the domain is the entire domain of your website (including
subdomains) and the path is the path of the current URL. If you create a cookie at www.example.com ,
and delete it at www.example.com/logout/ , and you don't specify a path, then the cookie will
not be deleted. So it's a good idea to always specify the path and domain.