Problems deleting cookies, won't unset (PHP).
Posted
by RemiX
on Stack Overflow
See other posts from Stack Overflow
or by RemiX
Published on 2010-05-18T10:32:56Z
Indexed on
2010/05/18
10:40 UTC
Read the original article
Hit count: 138
I've tried searching the php manual and internet on how to delete cookies and I've tried it the exact same way they all say:
setcookie("name", '', 1);
or
setcookie("name", '', time()-3600);
But when I check the cookies in the cookies dialog in Firefox, it's still there with the same value. I set this cookie using the following line:
setcookie("name", $value, time() + 259200, $path);
I found this question on stackoverflow: http://stackoverflow.com/questions/2497501/cookie-wont-unset, but none of the answers solved the problem. I also tried putting all paramaters in, like the author said, but it had no effect.
Does anyone see the problem?
© Stack Overflow or respective owner