note 84076 modified in function.setcookie by danbrown
| From: | danbrown@php.net | Date: | Sun, 17 May 2009 17:44:10 +0000 |
| Subject: | note 84076 modified in function.setcookie by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-155015@lists.php.net to get a copy of this message | ||
the cookie use is different as you're using firefox or IE
so if you've got probleme to kill cookie
dont forget to specify domain.
<?php
setcookie($name, "", time()-60*60*24*30, '/');
?>
in procedurale methode theire as usual no probleme because
the place where is created the cookie is the same you kill it.
but in POO point of view, if you got an object who manage cookie, it can be call from anywhere of
your site.
so the domaine mismatch...
dont forget '/' to get your cookie grant from all you directory.
--was--
the cookie use is different as you're using firefox or IE
so if you've got probleme to kill cookie
dont forget to specify domain.
setcookie($name, "", time()-60*60*24*30, '/');
in procedurale methode theire as usual no probleme because
the place where is created the cookie is the same you kill it.
but in POO point of view, if you got an object who manage cookie, it can be call from anywhere of
your site.
so the domaine mismatch...
dont forget '/' to get your cookie grant from all you directory.
http://php.net/manual/en/function.setcookie.php