I have a problem with Laravel Auth.
If I login then visit a private page and then I close the browser, opening it 2 days layer (for example) I see the private page instead of the login page. If I click on anything or refresh I get a login page.
The same is true if I leave the browser for hours and then come back, the session expired but I find out about it only after I press something.
Is there a way to redirect to login in those cases?