-
Notifications
You must be signed in to change notification settings - Fork 112
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
session regeneration #34
Comments
Why not fix this issue? Could someone give a comment? |
Signed-off-by: Cartoon Zhang <cartoon.zhang@zeofast.com>
I also wonder about this. How can I re-create the session? I want to logout current user just before logging in the new one: // if some user is already logged in destroy his session
if (!ctx.session.isNew) {
ctx.session = null;
}
// login
ctx.session.userId = userId; Can't getter create new session automatically if necessary? I tried to do it like this: ctx.session = null;
await KoaSession(ctx.app).call(this, ctx, next); But it will throw |
Not sure if this has been added, but I can't find a reference in the docs. I also have the same use case of destroying/recreating a session in a single call. |
some method definition is required for reset/regeneration of session. if any please inform.
The text was updated successfully, but these errors were encountered: