-
Notifications
You must be signed in to change notification settings - Fork 66
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
How to manually save session from ctx.session
?
#80
Comments
I'm having a similar issue--unable to save the session when using a socket.io listener Can read and write:
Can only read:
|
Edit: turns out this has a simple fix. The second fetch will work. Still looking for socket.io workaround Just as a warning for others, it appears that koa-generic-session does not allow modification to session from a fetch call. browser:
server:
|
im having the same read only issue in websockets while using @tbenst did you ever find a solution to this? |
@hedgerh haven't tried it yet but this appears to outline a solution: http://stackoverflow.com/questions/26643370/get-user-id-socket-io-passport-koa. If you do try it, please do post if it works and/or the code, cheers! Edit: also, if you only need to read this works: LnsooXD/koa-socket-session#1 (comment). May be able to modify this code for writing to session, haven't looked into it yet |
Closed per #94 (comment) |
e.g. I want to save session in my error handler middleware, how do I do that?
The text was updated successfully, but these errors were encountered: