Answer
Nov 12, 2008 - 04:37 AM
I found the solution now, but cookies are weird!
Just to be sure that you understand what I did, when I said deleting the cookie that meant setting the expiration date to -30 years. This is the only way to delete a cookie.
My problem was that I tried to do this with the existing cookie already set. But that doesn't work with the ".domain.com". Instead I created a new cookie, with the same name, same top-domain, and set the expiration to -30 years and added it to the response, and then it was deleted without problems!
Well, what can i say, cookies are weird stuff :)
Just to be sure that you understand what I did, when I said deleting the cookie that meant setting the expiration date to -30 years. This is the only way to delete a cookie.
My problem was that I tried to do this with the existing cookie already set. But that doesn't work with the ".domain.com". Instead I created a new cookie, with the same name, same top-domain, and set the expiration to -30 years and added it to the response, and then it was deleted without problems!
Well, what can i say, cookies are weird stuff :)
Add New Comment