Hi
How can I keep the users logged in for 2 weeks? I currently do this:
Auth::attempt(array('email' => $credentials['email'], 'password' => $credentials['password'], 'status'=>1), true)
Thanks
If you want the default for authentication to last for two weeks, you can adjust the session lifetime in the session.php config file.
'lifetime' => 20160, // 60 * 24 * 14
Best
Well, didn't really work out the way I wanted it to.
If you see Github, it keeps the whole computer logged in . With Laravel (code above) each time I open a new tab on the browser I have to log in!
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community