note 39378 deleted from function.setcookie by victor
| From: | victor@php.net | Date: | Sat, 27 Mar 2004 20:12:55 +0000 |
| Subject: | note 39378 deleted from function.setcookie by victor | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-67244@lists.php.net to get a copy of this message | ||
Note Submitter: Vincent
----
Here is a good away to destroy all cookies that you've set.
<?php
function destroyAllCookies() {
reset($_COOKIE);
while (list($key,$val) = each($_COOKIE)) {
setcookie($key,$val,(time() - (60*60*24)) );
}
}
?>