Arg, WHY IT NO DELETE COOKIE!? [resolved]
PHP Code:
<?
if ($delete)
{
setcookie($name, "", time() - 3600); // Setting to the past deletes
}
else
{
setcookie($name, "");
}
header("Location: " . $returnto);
exit;
?>
The file is called setcookie.php.
The user clicks a link with the URL setcookie.php?name=skipflashintro&delete=true&returnto=index2.php . But the cookie stays there. The cookie was made using setcookie.php?name=skipflashintro&delete=false&returnto=index2.php . So why doesn't it get deleted!?