Here’s the scenario: I have a module which has a form and a corresponding action. I use form_declaration to make sure I get an XID in the form, and in the action, I do a secure_forms_check(). Which is great, until the user makes it an AJAX form and tries to submit more than once. The first AJAX submit will work. At the end of that first submission, the XID gets deleted from the database, so subsequent AJAX submits will not have a valid XID accompanying them, and will fail.
As I see it, there’s two ways to deal with this problem.
Are there any other options I’m missing? What should be the preferred option?
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.