Snippet Name: Delete all cookies set
Description: This code snippet which will delete all cookies currently set by a website.
Also see: » Set, Get, Remove Cookies
» Cookie Login Code
Comment: (none)
Language: PHP
Highlight Mode: PHP
Last Modified: March 16th, 2009
|
<?PHP
FOREACH($_COOKIE AS $key => $value) {
SETCOOKIE($key,$value,TIME()-10000,"/",".domain.com");
}
?> |