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

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -