Solving the Double Submission Issue

后端 未结 7 1026
暖寄归人
暖寄归人 2020-12-01 03:06

I would like to see how Web Developers avoid the double submission problem. So basically my understanding of the problem is as follows:

Double submission occurs whe

相关标签:
7条回答
  • 2020-12-01 03:47

    A real life example would be this answer posted twice ;-). If you don't want to rely on any aspect of the client side (javascript, or even cookies), you can calculate an MD5 hash of the data submitted, possibly by adding information such as source IP and the browser used, and reject posts that have the same hash.

    0 讨论(0)
提交回复
热议问题