Skip to content

Fully initialized object fix for a null options object passed to session #85

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

killerbobjr
Copy link

This version reverts the unnecessary socket.io null options change and provides a completely initialized session options object if a null option has been passed in. This also constructs a cookie options object as well, using default values.

Still included from the previous commit, the prepublish element in package.json uses shelljs-nodecli to compile coffescript. This avoids cross-platform issues with Windows.

administrator added 3 commits May 1, 2014 09:08
Also updated package.json to be platform independent
A null options for express.session still needs to be a string though
This fix constructs a complete session options object if one doesn't exist, including a default cookie object as well. The previous fix submitted was a bit too simplistic and made assumptions about the way session options are processed within expressjs. A fully constructed options object should avoid any problems with future changes in expressjs as well.
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

Successfully merging this pull request may close these issues.

1 participant