No such thing as a small change | |
PerlMonks |
Hitting submit twiceby pcwsp (Initiate) |
on Feb 01, 2015 at 22:43 UTC ( [id://1115249]=perlquestion: print w/replies, xml ) | Need Help?? |
pcwsp has asked for the wisdom of the Perl Monks concerning the following question: I have a set of scripts which work fine 99.5% of the time. This is how they are supposed to work: 1. Customer completes order form and hits submit (once!) The problems start if the customer hits the submit button twice. Then we have two instances of the same script running. This is what happens: 1. The first instance is waiting for a reply from the bank - sometimes this can take a while. I would rather not rewrite the entire system for 0.5% of impatient customers, so I was wondering if there is way for the first successful instance of the script to tell if it has lost contact with the browser. Then it can maybe send an email with instructions how to access the order. Would getting the script to detect the browser version be a possibility? Any other suggestions? Thanks.
Back to
Seekers of Perl Wisdom
|
|