Crocoblock / jetformbuilder

74 stars 16 forks source link

Occasionally getting duplicate CSRF token client ID error #442

Open aayla-secura opened 4 months ago

aayla-secura commented 4 months ago

Hi there, using the latest version (3.3.4) of JetFormBuilder. I have one form embedded in my website's footer. The form uses a CSRF token. Every now and then when I load a page I get a database error about a duplicate CSRF token client ID entry as seen below (error shown in Query Monitor): JF csrf duplicate error

I can't seem to reproduce in a predictable way, it just happens sometimes. I suspect there's some sort of a race condition where the Csrf_Tools::add() function is called twice simultaneously (from multiple threads) with the same client ID.

Crocoblock commented 5 days ago

Please contact our support team regarding this case - https://crocoblock.com/help-center/ create a ticket including access details for your site where the issue occurred to make sure we can help you.

Thank you!