Solved

ASP.Net Back button issue after logout

Posted on 2010-11-26
2
435 Views
Last Modified: 2012-05-10
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!
0
Comment
Question by:aconsulting
2 Comments
 
LVL 5

Accepted Solution

by:
buraksarica earned 500 total points
ID: 34216943
no-cache for secure pages is acceptable IMO. This is for user's security. But if users click back button, they will see an error page. And this is not very user-friendly. So use no-cache for only the pages with check-out or smthn.
0
 

Author Closing Comment

by:aconsulting
ID: 34246731
Seems like it would be a better way, but works.
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Join & Write a Comment

Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
If you don't know how to downgrade, my instructions below should be helpful.
This Experts Exchange video Micro Tutorial shows how to tell Microsoft Office that a word is NOT spelled correctly. Microsoft Office has a built-in, main dictionary that is shared by Office apps, including Excel, Outlook, PowerPoint, and Word. When …
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now