Link to home
Start Free TrialLog in
Avatar of aconsulting
aconsultingFlag for Sweden

asked on

ASP.Net Back button issue after logout

Hi I have this issue as I seen many before has had with the website allowing the suer to step back once logged out. I have seen this code below recommend to solve the problem, and it works. But my questions are, is this the best way of doing it? I dont want to cache any of the secure pages? Will the web app run slower with out cashing secure pages? Is there an alternative?

Response.Buffer = True  
Response.ExpiresAbsolute = Now().Subtract(New TimeSpan(1, 0, 0, 0)) 
Response.Expires = 0 
Response.CacheControl = "no-cache" 

Open in new window



Thank you!
ASKER CERTIFIED SOLUTION
Avatar of buraksarica
buraksarica
Flag of Türkiye image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of aconsulting

ASKER

Seems like it would be a better way, but works.