We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

Ajax with security key

I have forms with the {{ security.getTokenKey() }}

It works fine - The first time

But if the form fails, and tells me that the firstname is incorret and then change it and submit the form again, the TokenKey has refreshed? How do I submit forms with ajax and tokenKey, without having to refresh the whole page?Thanks!

Thank you, that worked!



85.5k

you can mark any answer here as Accept answer so the thread will be solved.

Cheers

Izo's link solves the issue. Thank you!