mercredi 27 juin 2018

Laravel 5.6 remember cookie not being set

Im using Laravel 5.6 in the Homestead environment and the standard out of the box auth.

What im looking for is to have my users login, but when they click the remember me checkbox, have it actually remember them, it seems they are only remembered for a very very short time or as long as it is they have the browser window open.

The login form has a simple checkbox for the remember me as below;

<input class="form-check-input" type="checkbox" value="" name="remember" id="remember">

In the session.php config file i have set the default SESSION_DRIVER to cookie

'driver' => env('SESSION_DRIVER', 'cookie'),

and then in the .env the same thing;

SESSION_DRIVER=cookie

In the browser when i log in and check the remember box, and have a look at the cookie storage, it doesn't set any remember cookies at all.

Has anyone else had this issue? I would love some feedback.

Thanks.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire