Displaying 1 result from an estimated 1 matches for "doublepostcheck".
2011 Jun 29
3
Rails double submit -> double post -> duplicate data
...oblem when creating (because we
duplicate data) and we think that in some context it could become a
security issue (like posting twice a payment), so we like to know How do
you approach it?
Our approaches to the problem:
a) JavaScript implementation like "<form
onSubmit="doublePostCheck()"> and only returning true the first time
-> Problems: different navigators (firefox, safari....),
b) Token / Flag validation, base on a hidden variable in the form,
and validation of a unique token/server for post in the server
-> Problems: how do you handle...