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!

Clear HTTP_REFERER

Status
Not open for further replies.

notrut

Programmer
Feb 6, 2002
87
CA
Hi,

Is it possible to clear out the HTTP_REFERER??

I've tried setting it to nothing, but it does not work.

(i.e. set Request.ServerVariables("HTTP_REFERER") = nothing)

I want to prevent people from hitting the back button and then submitting a form they have entered in twice.

Any help would be greatly appreciated!!
 

That link describes the Server variable you are asking about. It says to clear it you need to redirect the user. Basically have your form input page, then submit page, finally redirect to the results page. According to this it would clear that variable.

I didn't test it so let me know if it works.

Cassidy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top