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

Broken cookies session store #631

Closed
der-On opened this issue Aug 18, 2014 · 0 comments
Closed

Broken cookies session store #631

der-On opened this issue Aug 18, 2014 · 0 comments

Comments

@der-On
Copy link
Contributor

der-On commented Aug 18, 2014

It throws an error:

TypeError: Cannot read property 'cookies' of undefined
at Cookie.read (.../node_modules/geddy/lib/sessions/stores/cookie.js:33:29)
at init (.../node_modules/geddy/lib/sessions/index.js:103:19)
at null._onTimeout (.../node_modules/geddy/lib/sessions/index.js:67:10)
at Timer.listOnTimeout as ontimeout

Using "session" instead of "controller" in the following lines fixes it, but I'm not sure if it's correct:

https://github.com/geddy/geddy/blob/master/lib/sessions/stores/cookie.js#L33
https://github.com/geddy/geddy/blob/master/lib/sessions/stores/cookie.js#L77

The other session stores do not tackle the controller at all.

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

1 participant