I would like to know if we can remove the cookie from the cookie collection that we created on the asp.net website. I tried to find Expiration Logic.It works, but it displays in the cookie browser.
Response.Cookies["UserID"].Expires = DateTime.Now.AddDays(-1);
Is there any other way, we can remove cookies from the collection so that it does not appear in browser cookies.
Please help me solve the problem. Thanks in advance.
Prateek saluja
source share