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
If you are using the cookie-session package instead of express-session, the app works fine until you try to logout.
cookie-session
express-session
The logout method calls req.session.destroy() which doesn't exist in the other package, so you get
req.session.destroy()
TypeError: req.session.destroy is not a function
Can we add a check or state that this package needs to be used with express-session? Something like:
if (typeof req.session.destroy === 'function') { ... } else { req.session = null; }
I can PR if you'd like.
The text was updated successfully, but these errors were encountered:
@inorganik we're looking at reworking the storage and session use soon. We'll keep cookie-session in mind when we do. Stand by for progress!
Sorry, something went wrong.
No branches or pull requests
If you are using the
cookie-session
package instead ofexpress-session
, the app works fine until you try to logout.The logout method calls
req.session.destroy()
which doesn't exist in the other package, so you getCan we add a check or state that this package needs to be used with
express-session
? Something like:I can PR if you'd like.
The text was updated successfully, but these errors were encountered: