How can I destroy a session (Session[\"Name\"]) when the user clicks the logout button?
I\'m looking through the ASP.NET API Reference on MSDN and it doesn\'t seem t
It is also a good idea to instruct the client browser to clear session id cookie value.
Session.Clear(); Session.Abandon(); Response.Cookies["ASP.NET_SessionId"].Value = string.Empty; Response.Cookies["ASP.NET_SessionId"].Expires = DateTime.Now.AddMonths(-10);