about preventing history back in ASP.NET# DotNet - 窗口里的风景
e*e
1 楼
Hi
I have a simple web application which requires Forms authentication.
My problem is when a user logs out, by pressing Back button in IE,
the former page, which requires a proper authentication, will be shown.
How to prevent this?
Have tried to put int the Page_Load method the following:
Response.Cache.SetCacheability(HttpCacheability.NoCache);
but it doesn't work.
Application is configured to be cookieless.
3ks.
I have a simple web application which requires Forms authentication.
My problem is when a user logs out, by pressing Back button in IE,
the former page, which requires a proper authentication, will be shown.
How to prevent this?
Have tried to put int the Page_Load method the following:
Response.Cache.SetCacheability(HttpCacheability.NoCache);
but it doesn't work.
Application is configured to be cookieless.
3ks.