Have you checked file permissions, and your config files for session expire time?
Feb 21, 2017
6
Level 2
Session expired
Hello all. I have simple question, but i can't solve it. I have session for example 1 minute and after 1 minute expire and i'm manually refreshing the page - i want laravel to redirect me to the login page.
In other version of laravel i just wrote TokenMissmatchException and it was fine for me:
public function render($request, Exception $exception)
{
if ($exception instanceof TokenMismatchException) {
return redirect('/login')->with('message', 'Sorry, your session seems to have expired. Please login again.');
}
return parent::render($request, $exception);
}
but in latest 5.4 version the same thing is not working, it's not even throws this exception. Can anyone assist ?
Please or to participate in this conversation.