Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

mspace's avatar

Session lifetime timeout and csrf token mismatch

I have a page with a form in it. On session timeout, the form shows a "419 Page expired" error because I think thew csrf token expires as well but I want it to redirect to the login page on submit. How can I fix this?

0 likes
1 reply

Please or to participate in this conversation.