Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Login remember token not working #22

Open
jaisonjebin opened this issue Jul 5, 2018 · 5 comments
Open

Login remember token not working #22

jaisonjebin opened this issue Jul 5, 2018 · 5 comments

Comments

@jaisonjebin
Copy link

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

@Parziphal
Copy link
Owner

Which version of Laravel are you using?

@jaisonjebin
Copy link
Author

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

@Parziphal
Copy link
Owner

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?

@jaisonjebin
Copy link
Author

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

@Parziphal
Copy link
Owner

Parziphal commented Jul 6, 2018

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants