note 99423 deleted from function.setcookie by mazzanet
| From: | mazzanet@php.net | Date: | Tue, 17 Aug 2010 01:30:49 +0000 |
| Subject: | note 99423 deleted from function.setcookie by mazzanet | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-171747@lists.php.net to get a copy of this message | ||
Note Submitter: Anonymous
----
spent 3 hours trying to figure out why my cookies wont cleared out (clear out).
turned out NOT to use single quotes (I like using them)
WRONG: setcookie("id", '', time() - 3600);
RIGHT: setcookie("id", "", time() - 3600);