scenario:
- User "a" logs in onto the website & gains access to member directory pages From A library Computer,
- User "a" logs out, leaves the browser open.
- User "b" starts to use the same computer, hits back button Sees User "a"'s member pages & information
- User "b" cannot do anything on pages but just view(will be redirected to login if they hit refresh for eg. User "b" being able to view at all a's data is a security hazard/bug.
Current code on log off :
Session.Contents.RemoveAll();
FormsAuthentication.SignOut();
Session.Abandon();
Response.Redirect("~/LogOff.aspx", false);
So how can i stop them from just hitting back on the browser to "view only" pages that they are no longer authenticated to view.
I understand that there is a way to switch off browser caching for the site
EG: Disabling browser caching for all browsers from ASP.NET
BUT would this interfere/be costly, as i have update panels for partial postbacks ?
are there any other alternatives to the problem i've described ?
Thanks