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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Prevent 'Back' Button Action Or Clearing Page History

Status
Not open for further replies.

RebelFox

Programmer
Jun 16, 2002
62
GB
If I set up a set of pages to add a record to a database, is there a way of preventing a session using the 'back' button to then skip back to the 'add confirm' page and submit another addition with the same page values?

 
This was posted here a while back:

<META HTTP-EQUIV=&quot;Expires&quot; CONTENT=&quot;0&quot;>
<META HTTP-EQUIV=&quot;Cache-Control&quot; CONTENT=&quot;no-cache, must-revalidate&quot;>
<META HTTP-EQUIV=&quot;Pragma&quot; CONTENT=&quot;no-cache&quot;>


É
::
 
This doesn't seem to work for me.
I have coded the html in a set of pages but when I step back
to a page built from an asp read to a database I still see
the same recordset, even though a record has been deleted.

Is there a way of putting up a message 'Page Expired' instead of the same data? I think Amazon do this somehow.
 
You could put a small bit of code, I don't know what the syntax is in Asp but the idea could be: if refereer is &quot;submitted page&quot; print &quot;Page expired&quot;


É ::
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top