Web page needs to timeout

  • Thread starter Thread starter sandman
  • Start date Start date
S

sandman

I'm working on an intranet website that is password
protected. It's only got 2 pages: the login page and a
data entry page. On that page, the user can enter some
data and the page refreshes and shows the results. But he
can leave the page open, go back, forward, or refresh and
get to previous screens. I've tried all kinds of things
like setting Response.Expires = -1, redirecting them back
to the login page (which prevents them from seeing the
results). But the bottom line is the user can still use
Back and Forward and Refresh. I've GOT to time out the
page and they GOT to log back in. They can't have ANY way
to get back to, view, or use any page that has ever been
loaded in all of eternity. I don't care if I have to nuke
their history file and all their cookies to get there. I
really need help....
 
Hi Sandman

I would try: Response.Cache.SetCacheability(HttpCacheability.NoCache) in
your server code. That should do it.

HTH

James.
 
It's only half the solution. It only works when IsPostBack
is false. So the user can go back to the original page but
can't go forward.
 
Back
Top