Somewhat new to Laravel, but what is the best method of creating a message to let the user know that Session has timed out. And when they click on OK, to automatically send the user to the login screen for the entire website.
Currently, even when the application timeout, the screen is still there with no message which can be confusing to the user. Thanks in advance.
@johnw65 if session expires then next refresh will redirect to login page. This is how it works. You could in theory show a timer to the user by checking his session when he enters/refreshes the website.
But the question is: "Why bother doing it?"
If you really have to do it then set session lifetime to some crazy value in config/session.php: