Skip to content
This repository has been archived by the owner on Aug 30, 2021. It is now read-only.

How to do that session expiring automatically? #802

Closed
aralroca opened this issue Aug 14, 2015 · 4 comments
Closed

How to do that session expiring automatically? #802

aralroca opened this issue Aug 14, 2015 · 4 comments

Comments

@aralroca
Copy link

I want that the session expires after 72 hours. What part of the MEAN.JS code I need to modify to do that? I'm not very familiar with ExpressJS. Thank you so much!

@pgrodrigues
Copy link
Contributor

I believe you are looking to set a maxAge for session cookie, something like this: http://stackoverflow.com/questions/10429557/whats-the-correct-way-to-use-maxage-with-express-js.

if that's the case, in MEAN.JS you just have to add cookie: {maxAge: 259200} to the "Configure Express session" block in config/lib/express.js.

@aralroca
Copy link
Author

Thank you a lot!

@lirantal
Copy link
Member

Hi @aralroca,
I created a PR to address this problem: #803

@lirantal
Copy link
Member

Updated PR #804 has been merged so this is already available to you in master branch @aralroca
Thanks for letting us know!

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

No branches or pull requests

3 participants