note 55769 deleted from function.setcookie by jacques
| From: | jacques@php.net | Date: | Fri, 02 Dec 2005 19:00:19 +0000 |
| Subject: | note 55769 deleted from function.setcookie by jacques | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-99484@lists.php.net to get a copy of this message | ||
Note Submitter: martin at mpnetwork dot co dot uk
----
In a follow to Carl V's cookie snippet posted below a simpler way to delete all cookies is:
<?php
foreach ($_COOKIE as $key=>$value) {
setcookie ($key, $value, time() - 1);
}
?>