I have developed a ASP.NET MVC 3 (with Visual C#) application. In this, i used forms authentication for user login. When the user logs off, i use the following code to clear the session.
FormsAuthentication.SignOut();
Response.Cookies[
FormsAuthentication.FormsCookieName].Expires
= DateTime.Now.AddDays(-1);
Response.Cookies.Add(
newHttpCookie("ASP.NET_SessionId",
""));
this.Session.Abandon();
this.Session.Clear();
But the session remains invalidated in the server. Why the session remains valid even after its cleared?