Preventing / Blocking Page Review after Logout with Forms Authentication

After logging out we can prevent getting previous page or information by doing following things. Add Code to Page Load event: —————————– Response.Cache.SetExpires(DateTime.UtcNow.AddMinutes(-1)); Response.Cache.SetCacheability(HttpCacheability.NoCache); Response.Cache.SetNoStore(); Or We can use following code Page.Response.AppendHeader(“Cache-Control”, “no-store, no-cache, must-revalidate, post-check=0, pre-check=0”); Add Code to Log out Button: —————————– Session.Abandon(); //Session[“IsLogedIn”] = “0”; //set your session status //Response.Redirect(“set your log

Read More