In the session.php file under Config directory of laravel 5.1, I have specified 'lifetime' => 10
which logout the user after 10 minutes of inactivity. But it does not redirect to login page automatically when the session expires until the user clicks on some link.
I want to redirect the user to the login page instantly after the session expire even if no link is clicked. I also want to get some values in the session before resetting it.