When the user choses to logout I try to destroy the session cookie.
I tried setting the cookie passing just the name, or with a date in the past, or with all the parameters, and nothing happens.
If I set another cookie right after I reset the session cookie, then the session cookie is deleted.
Any idea?
#This doesn't work:
setcookie("PHPSESSION", "", $time, "/", ".domain.com", 1);
but if I put this line right after it, the previous line works:
setcookie("other_cookie", "", $time, "/", ".domain.com", 1);
Anybody?
Thanks.