In my website when the user clicks on the \"Logout\" button, the Logout.aspx page loads with code Session.Clear().
Session.Clear()
In ASP.NET/C#, does this clear all co
You have to set the expiration date to delete cookies
Request.Cookies[yourCookie]?.Expires.Equals(DateTime.Now.AddYears(-1));
This won't throw an exception if the cookie doesn't exist.