I was wondering if it is possible to delete a cookie in PHP, i.e. to re-set the time to time in the past, for a specific subdomain from another subdomain.
For example:
Let's say I execute the following code on one.myserver.com, which is intended to delete a cookie on two.myserver.com
setcookie("ACOOKIE", 0, time() - 3600, "/", "two.myserver.com");
This currently does not work for me. Is there a way I can get something like this to work?
php cookies setcookie
matt
source share