-
Notifications
You must be signed in to change notification settings - Fork 4
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
this.ttl not set #3
Comments
this.ttl has been removed by this commit : |
I've pushed the updated version to npm, going to close this issue out, but if you still have issues please let me know, better tests for the library is on the todo list but obviously isn't quite there yet. Thanks again. |
Perfect thank you for your prompt answer :) and thanks for the module ;) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello;
I got an issue (which is maybe due to a misuse of your module)
I use it this way :
var MS = require('express-mongoose-store')(expressSession, mongoose);
var sessionStore = new MS({ttl: 600000});
but when i the cookie is set in function MongooseStore.prototype.set = function (sid, sess, fn) {
on this line :
var expires = Date.now() + this.ttl;
This.ttl is not set ( = null) then expires is an invalidate Date; and so i do not manage to get a functional cookie.
Did i miss something ?
Thank you
Arnaud
The text was updated successfully, but these errors were encountered: