Delete cookies from .domain.com in PHP -
I have cookies which I want to use PHP. I can read cookies from .domain.tld to the
$ _ cookie variable, but I can not remove them. I tried to remove them from
domain.tld and
subdomain.domain.tld , but did not work. How do I delete cookies from
.domain.tld
Here's the code I am using:
setcookie ( $ K, '', time () - 60 * 60 * 24, '/');
Try it out.
$ past = Time () - 86400; Setkey ($ k, '', $ past, "/", ".domain.tld");
Comments
Post a Comment