--> 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
--> 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
------------------------------------------------------------------------
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();
}
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