mrweb
214
6
General

Login expires and shows private data

Posted 3 months ago by mrweb

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?

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

Reply to

Use Markdown with GitHub-flavored code blocks.