We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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 docs say that Session.isNew is "true" when the session is new. I've tried all of the following:
var session = require('cookie-session'); ... app.use(session({ keys: ['key1', 'key2'] })); app.use(function (req, res, next) { var isNew = Session.isNew; // ReferenceError: Session is not defined var isNew = session.isNew; // undefined var isNew = req.session.isNew; // undefined ... }
Where do I find this elusive isNew flag?
isNew
The text was updated successfully, but these errors were encountered:
Thanks! It looks like it's an error in the docs, as I don't believe this property has ever existed in this module.
Sorry, something went wrong.
260f0ca
dougwilson
No branches or pull requests
The docs say that Session.isNew is "true" when the session is new. I've tried all of the following:
Where do I find this elusive
isNew
flag?The text was updated successfully, but these errors were encountered: