Are you using any of the Laravel starter kits for authentication or have you implemented your own?
Oct 28, 2022
4
Level 1
Sometimes I can not connect (419) when I lose session
This is weird... Sometimes the session is lost (this can happen for any reason, or even session timeout ...), this is OK. So I'm redirect to LOGIN page.
But when I login I get a 419 error... a "CSRF token mismatch."
I go again to the login page, reload page , and I see the CSRF hidden field in the form, with a key ... But it does not work.
For some time, the login is "stuck" and I can not login again ...
never ... until I clean all the session data (cookie) from the Chrome browser.
Then, from scratch (obviously) login works again.
Any reason for this "login stuck" issues ?
Please or to participate in this conversation.