After logging out from Asp.Net application, history.forward() not working in Mozilla Firefox
My application is in developed in Asp.Net with the coding language as VB.Net, the issues is after the user logouts 开发者_JAVA百科if the back button of the browser is used then the application redirects to Login page.
What i tried:
I used history.forward() in my script under head, but its not working if i use Mozila Firefox browser.
Solution is welcomed.
You will need to make sure the pages behind the login (those that can only be accessed after login) are not cached in the browser:
Page.Response.Cache.SetCacheability(HttpCacheability.NoCache);
If using forms authentication, you will also need to abandon the session and logout:
Session.Abandon();
FormsAuthentication.SignOut();
source
reference-1 reference-2
精彩评论