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

How to expire asp pages so the back button will not work?

Status
Not open for further replies.

jamie79

MIS
Aug 13, 2002
1
US
I am creating an online test and need to not allow students to be able to use the navagational back button on the browser. I trying to use either a session or a response.expires property but its not working. Help?
 
Try:

<%
Response.AddHeader &quot;Pragma&quot;, &quot;no-cache&quot;
Response.AddHeader &quot;cache-control&quot;, &quot;no-store&quot;
%>

before any html code. I use this to clear a form so after it gets submitted, the user cannot go back and submit it over and over again.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top