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

Support ctx.sessionId #8

Closed
tsing opened this issue Feb 13, 2017 · 1 comment
Closed

Support ctx.sessionId #8

tsing opened this issue Feb 13, 2017 · 1 comment

Comments

@tsing
Copy link

tsing commented Feb 13, 2017

as koa-generic-session has this.sessionId

@lzztt
Copy link
Owner

lzztt commented Feb 13, 2017

Hi tsing,

I thought about this, but didn't think that sessionId would be a reliable value for any middleware to use, because of session's regeneration / rolling id feature.
Any middleware can regenerate the whole session, or roll the session id at any time, which would invalidate the previously saved sessionId value without notice.

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

2 participants