So I have this code on my index.php:
If t
Not the cleanest but Check the time zone is correct Ensure you are nuking the correct cookie( case sensitive ) Failing all of they over writing the cookie will nuke it anyway So...
Setcookie('mycookie') // nukes the cookie with a blank entry
You may want to check if the path the cookie is set at is correct. By default PHP sets the cookie path to the directory it's set in and it will not be available (nor possible to delete) from different locations.
Few more tips:
$_COOKIE
and $_SESSION
instead of redirecting using a meta tag redirect with HTTP headers:
header('Location: /index.php'); // or whatever is the path you want to redirect to
remove this line
unset($_COOKIE['RememberMe']);
Cookie cancelations can sometimes require the same time value as they were set.
setcookie("RememberMe", "", time()-1209600);