Cookie not deleted when using domain
Posted: Tue Jul 09, 2002 1:12 pm
Hello,
I have a problem and I hope someone can enlighten me. I am using the following code to set a cookie:
Where $cookie_domain is like ".domain.com"
The coookie is set OK, but I can't seem to be able to delete it:
If I don't specify a domain when setting a cookie, I can delete it very well. But I need to use domain, as I never know what the user will use to enter the site (http://www.domain.com, server.domain.com etc.), and I want the cookie to be recognized on different visits, regardless of what URL will be used.
Any help is greatly appreciated.
Best regards,
Sebastia
I have a problem and I hope someone can enlighten me. I am using the following code to set a cookie:
Code: Select all
setcookie("member", $aї'name'], time()+86400, "/", "$cookie_domain");The coookie is set OK, but I can't seem to be able to delete it:
Code: Select all
setcookie("member","",time()-3600,"/","$cookie_domain");Any help is greatly appreciated.
Best regards,
Sebastia