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

Session timeout #381

Closed
agaskell opened this issue Jul 22, 2014 · 4 comments
Closed

Session timeout #381

agaskell opened this issue Jul 22, 2014 · 4 comments

Comments

@agaskell
Copy link

I changed the signToken function to this in auth.service:

function signToken(id) {
  return jwt.sign({ _id: id }, config.secrets.session, { expiresInMinutes: 9000000 });
}

My users are being prompted to login daily, sometimes multiple times per day. Is there anything else I need to configure for session persistence?

@DaftMonk
Copy link
Member

If you're not using 2.0.5, this might fix the issue: 6d6090d

@agaskell
Copy link
Author

I updated to the 2.0.5 code and it's still happening. For whatever reason it seems to happen more frequently on mobile devices (primarily Chrome on Android). Any ideas on where to start looking?

@remicastaing
Copy link
Contributor

The token is actually stored in a sessions cookies. If your users close the browser, the token is lost and they have to login again.
Wait for a remember me functionality.

@Awk34
Copy link
Member

Awk34 commented Jul 9, 2015

Will hopefully be fixed with #444

@Awk34 Awk34 closed this as completed Jul 9, 2015
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

4 participants