Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 463
  • Last Modified:

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
0
tcalbaz
Asked:
tcalbaz
  • 3
  • 2
1 Solution
 
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

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now