Forms

G

Guest

I've built a form in html that posts data to an ASP file that uploads data to
a SQL database. The form works well. My problem is that for security
reasons, I need to prevent users from hitting the back button to get the form
with data showing from the last submission.
Anyone know how to clear the cache so if a user hits the back button, the
html form's data is nulled out?
Thanks
 
S

Stefan B Rusynko

You could try ASP cache control

Response.ExpiresAbsolute = #1999-12-31#
Response.AddHeader "pragma", "no-cache"
Response.AddHeader "cache-control", "private, no-cache, must-revalidate"


--




| I've built a form in html that posts data to an ASP file that uploads data to
| a SQL database. The form works well. My problem is that for security
| reasons, I need to prevent users from hitting the back button to get the form
| with data showing from the last submission.
| Anyone know how to clear the cache so if a user hits the back button, the
| html form's data is nulled out?
| Thanks
 

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