Code Comments
Programming Forum and web based access to our favorite programming groups.Hi, this must be a common problem and I was wondering what commonly used strategies to solve it are: How can I avoid that a user re-sends a POST form when hitting the reload button on a result page? The browser typically warns you when you want to do that but I was wondering whether there is an easy way to make it impossible. Thanks for any hint! Ingo Weiss
Post Follow-up to this messageIngo Weiss wrote: > Hi, > > this must be a common problem and I was wondering what commonly used > strategies to solve it are: > > How can I avoid that a user re-sends a POST form when hitting the > reload button on a result page? You can't. If the transaction is not repeatable, you need to have some way on the server side to detect that the transaction has been previously submitted and reject it on subsequent submissions. Assigning a unique transaction ID number to each transaction is one way of doing it. > > The browser typically warns you when you want to do that but I was > wondering whether there is an easy way to make it impossible. Nope. You have to deal with it on the server side.
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.