tebowner
500
27
Laravel

CSRF token mismatch error on session timeout / form

Posted 3 years ago by tebowner

A session timeout causes a Token error on a post. This is not a malicious attempt... I am looking for a way to redirect the user back to my login page anytime a session timeout occurs and they try and "do something".

Right now i get the error page in Production but no real error occurred. On a Session timeout - would be nice if the timeout could redirect to my login page and display message

Please sign in or create an account to participate in this conversation.

Laracasts Mascot

Hi, Have We Met Yet?

Did you know that, in addition to the forum, Laracasts includes well over 1000 lessons on modern web development? All for the price of one lunch out per month.

Sign Me Up

Channels

Reply to

Use Markdown with GitHub-flavored code blocks.