Link to home
Start Free TrialLog in
Avatar of tcalbaz
tcalbazFlag for United States of America

asked on

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
Avatar of Gee_Orge
Gee_Orge

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;"

Avatar of tcalbaz

ASKER

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
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! :)
Avatar of tcalbaz

ASKER

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

ASKER CERTIFIED SOLUTION
Avatar of Gee_Orge
Gee_Orge

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial