Entry
I have tried deleting a cookie but no luck.
Jul 18th, 2000 11:59
russ uman, Joe Pietroni, Andy Lewis,
The easiest way to delete a cookie in PHP is NOT to set it to expire in
the past - it doesn't seem to work that way. Instead, just use
setcookie("CookieName"); with no other arguments specified. That will
delete the cookie.
the above doesn't work with all browsers in all environments. i've
found that i have to use setcookie("CookieName", "", 0, "", "", 0) to
get the right behavior in all cases.
-russ