Exact duplicate : How to handle multiple third-party applications
Overall objective: Prevent duplicate submission in a multi-user web application. Think about financial transactions.
I have two methods that can be used in tandem:
- JavaScript button disable
- Disadvantage: does not work if JavaScript is disabled.
- Vertical version - see how long ago the last request of this type came from this user and generated an error, if not so long ago
- Drawback: if two views are close enough to each other, each of them may not know the other
I am looking for subject experts to contribute my best practices as well as esoteric tricks. It can be any language and structure, but Django is of particular interest. A lot has been written about the problem on the Internet, but it would be nice if the best practices were shown here.
html forms double-submit-prevention
Krystian cybulski
source share