force page expire?

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!
 
S

Steve C. Orr, MCSD

You can do that with this code:

Response.Expires = 0
Response.Cache.SetNoStore()
Response.AppendHeader("Pragma", "no-cache")
 
S

szabelin

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!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

No members online now.

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,042
Latest member
icassiem

Latest Threads

Top