Clear request cache

Distinguished Gurus

My user places their order after they hit the submit key.  The next page uses request to read the fields from the previous page.  All is well.  However because they are impatient they start hitting the submit button several more times.  Each time they do this the page re-reads the request information from the previous page.

Whats the best way to stop this?

How can I clear out the request cache to nothing so the order doesn't get reprocessd.

Ultra Thanks

Ted
LVL 1
tcalbazAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Gee_OrgeCommented:
try to disable the button with some javascript
i mean  it's hitted set it as  onClick = "document.getElementById('button's id here').disabled = true;"

0
tcalbazAuthor Commented:
Thanks Gee Orge

What I have is a situation where people are hitting the browser back button so I have to definitely clear the request cache if thats possible.

Ted
0
Gee_OrgeCommented:
Well let me understand

u have a form,
i fill this form and i sumbit it, then it goes into another page to thank me for filling the form, or there are many forms one after another.

if the data is don't need it any more u can simply use a response.Redirtect to some page to loose the POSTED data. so i someone hit the back button the he will tranferd at the first form that he has just submitted.

let me know if i helped u! :)
0
tcalbazAuthor Commented:
Gee Orte.

It seems that there is little one can do to prevent a user from hitting the browser back button or just retyping the URL.  
So far that best solution I can see is to flush and clear the page cache before moving to the "thank you for filling the form page"

I am open to a better solution if it exist.

Thank you

Ted

0
Gee_OrgeCommented:
Yes u can prevent to some one to hit the back button,
or maybe u can use some kind of javascript to clearbrowser's history, but this isn't a good idea.

I have made many forms, and one quick and realiable solution that i am using is to use a redirection to move to the last page, to avoid the data to be reposted when the user moves backwards.

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.