Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

show "webpage has expired" on back button

Tags:

http-post

What is the requirement for the browser to show the ubiquitous "this page has expired" message when the user hits the back button?

What are some user-friendly ways to prevent the user from using the back button in a webapp?

like image 239
mkoryak Avatar asked Oct 16 '09 19:10

mkoryak


1 Answers

Try using the following code in the Page_Load

Response.Cache.SetCacheability(HttpCacheability.Private)
like image 54
Jeremy Avatar answered Dec 19 '22 02:12

Jeremy