I want to redirect user automatically to the login page when session expires.
I know by Auth::check() i can check if user session exist or not. but if user refresh the page then only it is redirecting to login.
Suppose user's session expires, then immediately i want to redirect to login page without waiting for user to refresh the page.
Is it possible. please tell me the right way to do it.