KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have the following code in my login method: Response.Cookies["cookie"].Value = "..."; Response.Cookies["cookie"].Domain = "domain.com"; This way the cookie is put into the main domain and all subdomains However when I try to remove the cookies: Response.Cookies["cookie"].Expires = DateTime.Now.AddYears(-1); It doesn't work! When I remove the 2 line of code where Domain property is specified, it works fine. How can I solve this problem? Thanks
Tags (comma-separated)
Save Edits
Cancel