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
Session.Abandon(); did not work for me either.
Session.Abandon();
The way I had to write it to get it to work was like this. Might work for you too.
HttpContext.Current.Session.Abandon();