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

Popular posts from this blog

python - how we can use ajax() in views.py in django? -

matlab - Using loops to get multiple values into a cell -

python - Sequence Pattern recognition with Pybrain -