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

前端 未结 7 1094
佛祖请我去吃肉
佛祖请我去吃肉 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:00

    You could supply a "ticket" as part of the form, some random number - and make sure it doesn't get accepted twice, on the server side.

提交回复
热议问题