Is there a PHP way to delete a cookie, besides natural expiration dates?
Thanks,
Mike
Im fairly certain this is correct. All you have to do is call
setcookie("CookieName");
with no other arguments and it deletes it. Of course, you have to do that for every value in the cookie to completely delete it.
Duane
I've tried this method to delete cookies but seems that it only works with IE5 but not with Netscape 4.73. Does anyone have the same problem too?
Yeah I've had it. I may resort to using JavaScript to bake cookies. It seems to work better that way.
Set the cookie: setcookie(\"cookiename\", $variabele, time()+86400, \"/\");
Delete the cookie: setcookie(\"cookiename\", \"\", time()+86400, \"/\");