Feature #2817

Provide safeguard for preventing multiple submits of a form

Added by Robert Lemke over 6 years ago. Updated almost 2 years ago.

Status:Needs Feedback Start date:2009-03-10
Priority:Should have Due date:
Assigned To:- % Done:

0%

Category:MVC
Target version:-
PHP Version: Complexity:
Has patch:No

Description

We need a mechanism which prevents the user from accidentally submitting a form multiple times. This should be handled both on the client and on the server side.

On the client side a simple JavaScript will check if the form has been submitted and if so displays a message if the user tries to submit it a second time.

On the server side some hash which is unique to that rendered form should be checked to figure out if that particular form instance is already being processed.


Related issues

related to TYPO3.Flow - Feature #4960: There should be a Request hash check when objects are mod... Resolved 2009-10-09
duplicated by TYPO3.Flow - Feature #2818: Provide safeguard for preventing multiple submits of a form Closed 2009-03-10

History

#1 Updated by Robert Lemke about 6 years ago

  • Target version set to 283

#2 Updated by Robert Lemke about 6 years ago

  • Target version deleted (283)

#3 Updated by Bastian Waidelich almost 2 years ago

  • Status changed from New to Needs Feedback
  • Has patch set to No

IMO this is not the responsibility of the framework as we can't know for sure whether a request is idempotent or not. Besides this would violate the "stateless" principle of HTTP.
Usually a simple solution is to disable the form on submit via JavaScript.

Also available in: Atom PDF