parse icon indicating copy to clipboard operation
parse copied to clipboard

Login remember token not working

Open jaisonjebin opened this issue 7 years ago • 5 comments

User is not logged in even after remember token set.User is logged out soon after browser is closed

jaisonjebin avatar Jul 05 '18 13:07 jaisonjebin

Which version of Laravel are you using?

Parziphal avatar Jul 05 '18 15:07 Parziphal

"laravel/framework": "5.6.*" is it because of column name(remember_token on laravel and rememberToken on Parse)

jaisonjebin avatar Jul 06 '18 05:07 jaisonjebin

The column name for the remember token is set to rememberToken in Auth/UserModel.php on line 34. Are you sure that's what is causing the problem?

Parziphal avatar Jul 06 '18 07:07 Parziphal

Dont know what exact cause this.rememberToken is setting on db,also user is logged in for few hours(after browser close)

jaisonjebin avatar Jul 06 '18 08:07 jaisonjebin

I've experienced that myself (with Laravel's vanilla login system, not with this library), that the user session expires within a couple hours.

But now I'm confused. First you said the user is logged out "soon after browser is closed", which I understood as "immediately" (because, actually, I read it as "as soon as the browser is closed"). Now you put it in a different way as you said "user is logged in for few hours". So, is the user logged out immediately, or after a couple hours? I probably misunderstood the first sentence.

If the session lasts just a couple hours, that's alright because Laravel sets the default session lifetime to 120 minutes. You change that in config/session.php, the lifetime option (should be in line 32).

Parziphal avatar Jul 06 '18 15:07 Parziphal