Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Page Expired Message

Status
Not open for further replies.

sifitz

Programmer
Feb 27, 2002
47
GB
Hi,

How do you prevent users from using the browser's back button and re-entering data in a form that has just been posted.

I have often seen the "Page Expired" message and would like to use that.

Is this a web server issue? I am using IIS 5.0

Thanks,

Si [afro]
 
the page expired message is due to the data being read from a database. to my knowledge, there's no way to stop the user from going back per se.
if you're in an intranet environment, you could set a cookie that would verify that the form has already been submitted once and then redirect them on the reload of the page. Actually, you might be able to do that with a hidden field as well.
hth
mb
:)
 
Thanks for the response. I did a bit more searching because I was hoping that there would be a more simple solution. I have decided to use the javascript history.forward method to redivert the input pages to the page where the details are processed. It appears that due to caching the processing isn't done twice.

Cheers

Si [afro]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top