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

laracasts9924's avatar

Redirect user to home page after session expire

Having issue with a Laravel 5.2 instance. This is happening on my development site. For example, I login and say I come back to the page after a couple of hours, then click a link I get a blank white page. I assume the session has expired. So how can I send a user back to the login page or home page upon session expiration.

0 likes
3 replies
willvincent's avatar

a blank white page, also known as the "white screen of death" is generally caused by some uncaught exception or other server error. Step 1: Check your error logs.

laracasts9924's avatar

thanks for the quick response. The log error was the first thing I checked and nothing is getting stored for this issue. So right now I let my session expire. I refresh the and blank white screen. I then do multiple refreshed and the same. Check the error log and nothing has been logged for the page refreshes showing the blank page.

Any other suggestions??

laracasts9924's avatar

Also, my storage and boostrap folder are writable. There are errors being written to my log file just nothing when the session expires and I have a blank page and refresh. Nothing that helps me to debug the issue :)

Please or to participate in this conversation.