Pergunta de entrevista da empresa Entain India

how to solve double posting problem

Respostas da entrevista

Sigiloso

1 de jun. de 2018

Double posting can be solved by creating UUID/GUID hidden input in form using server side scripting language that renders the form. On form submission immediately add this to a database table called uniqueSubmission. Every subsquent request will be rejected with the same UUID/GUID if found in the database.

1

Sigiloso

1 de jun. de 2018

but this process increases the load on server the easy process will be generating a token id at client side and checking the session if the token matches or not