Web page needs to timeout

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....
 
J

James Musson [MSFT]

Hi Sandman

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

HTH

James.
 
S

sandman

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.
 

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

Top