I've searched through a number of threads on this topic, but none have seemed to help.
I'm having trouble deleting a cookie. I can set it fine like this:
setrawcookie("username", $username, time()+3600);
But I can't delete it like this:
setrawcookie("username", "", 1);
I've also tried adding a "/" in the domain parameter:
setrawcookie("username", $username, time()+3600, "/");
setrawcookie("username", "", 1, "/");
If it matters, the cookie is set on the page mysite.com/login/index.php and is (theoretically) deleted on the page mysite.com/logout/index.php - could the directories be causing the problem? If not, where am I going wrong?