Feature #2817

Provide safeguard for preventing multiple submits of a form

Added by Robert Lemke over 10 years ago. Updated about 6 years ago.

Status:
Needs Feedback
Priority:
Should have
Assignee:
-
Category:
MVC
Target version:
-
Start date:
2009-03-10
Due date:
% Done:

0%

PHP Version:
Has patch:
No
Complexity:

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 modified 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 over 10 years ago

  • Target version set to 283

#2 Updated by Robert Lemke over 10 years ago

  • Target version deleted (283)

#3 Updated by Bastian Waidelich about 6 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