Friday 28 March 2014

previous page will not back after log-out

--> When you logged out successfully and click on browser's back button then it should not be come back again in your home page.
--> It means previous page will not back after log-out
--> The following code is for previous page will not back after log-out

Other Articles - Step by step solution

------------------------------------------------------------------------
three tier architecture in asp.net
how to connect MS access in asp.net
how to access website in LAN
------------------------------------------------------------------------

It's solution for

 

Browser Back Button Issue After Logout
Back Button issue after Logout in ASP.NET
Avoid go back after Logout
prevent go back after logout


Following code is use in Page_Load() method of your Home page or Master page.


public void RemoveCache()
    {
        Response.Cache.SetCacheability(HttpCacheability.NoCache);
        Response.Cache.SetExpires(DateTime.Now.AddSeconds(-1));
        Response.Cache.SetNoStore();
    }

No comments:

Post a Comment



Asp.net tutorials