force page expire?

  • Thread starter Thread starter szabelin
  • Start date Start date
S

szabelin

Hello - is there a way to make it so that when users
press "back" button IE will show "Page Expired", or
similar message, or force browser to submit another
request to the server so I can handle it? Thanks!
 
You can do that with this code:

Response.Expires = 0
Response.Cache.SetNoStore()
Response.AppendHeader("Pragma", "no-cache")
 
Hello Steve, thank you for replying. Is there a way though
to set these back to the original values? In my case they
are changing database connection, so I want to wipe out
session keys, and not allow them to go back to data page
(cause results are now from another database), but once
they are on with a new connection established - I want
things back to normal. Thanks!
 
Back
Top