How do you prevent a user from posting data multiple times on a website

前端 未结 7 1096
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-08 16:30

I am working on a web application (J2EE) and I would like to know the options that are available for handling a double post from the browser.

The solutions that I ha

相关标签:
7条回答
  • 2020-12-08 17:05

    Implement a uniqueid to go with the request and log it along with the execution. If the id was already logged, you don't do the job again. This is kinda like the fallback solution - you should try and disable the button or link clientside as well as you suggested yourself

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