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

the flash session not to be expired #6

Open
alsemany opened this issue Aug 9, 2015 · 3 comments
Open

the flash session not to be expired #6

alsemany opened this issue Aug 9, 2015 · 3 comments

Comments

@alsemany
Copy link

alsemany commented Aug 9, 2015

Hello,
I have this session

app.use(session({ secret: 'changeme' , cookie: { secure: false,  maxAge: new Date(Date.now() + 3600000), } , resave:false, saveUninitialized:false, store: new SkinStore(db)  }));

when using flash it will stuck on the session and not to be expired !
should I destory the flash session manually

@carloscarcamo
Copy link

+1

@jordonias
Copy link

I don't often use flash so I cannot help beyond this: maxAge should be an integer in milliseconds, not a date.
https://github.com/expressjs/session#cookiemaxage

@VictorioBerra
Copy link

+1

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