Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

fadhlirozman's avatar

Laravel 5.6 session timeout redirect to url

how to modified my code to redirect to another url if the session already timeout in laravel 5.6. Sorry for my bad english

0 likes
1 reply
Snapey's avatar

Just protect the routes with the auth middleware. The user will be redirected to login if the session has expired.

Please or to participate in this conversation.