Reputation: 1979
I have implemented remember me functionality in my Laravel 4.2 project.
Here is how I login passing remember me checkbox value:
Auth::login($user, $remember);
In session.php I have 1 minute expiration for testing purposes:
'lifetime' => 1,
'expire_on_close' => false,
Now, when I login cookes are created, one for the session with expiration 1 min and one for the remember_me with expiration 5 years.
After 1 minute the session cookie is expired and I am redirected to the login screen which is not what I would expect since remember_me was checked.
What am I missing here ?
Upvotes: 0
Views: 119