I have a login page(default.aspx) followed by 2 asp.net pages(page1.aspx,page2.aspx) under a masterpage with logout button. When I click logout,it makes the session null and hence logout.
But after logging out when I put the url of page1.aspx in the address bar, it displays the page(page1.aspx) again.
My code for logout button:
Session["id"] = null;
Response.Redirect("Default.aspx");
Response.Cache.SetNoStore();
Response.CacheControl = "no-cache";