-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Can't restore sessionId from Cookie. #505
Comments
everything works well after I change code below. SessionId is restored when server reboot.
|
@mrniko any update? |
@wuxudong any chance you can provide a pull request so @mrniko can review it and eventually commit your changes into master branch? Don't forget this is an open source projects and any help is welcomed |
@pablojr Thanks for your advice. I will create a PR. And is this really a bug? or I miss some necessary config? |
restore sessionId from io Cookie. #505
I'm sorry, but this not only breaks everything because all opened browser tabs begin to share the same socket id #526 , but also it is not compatible with reference engine.io implementation: socketio/engine.io#422 |
Fixed |
When the server reboot, the client will reconnect, and the sessionId should remains the same.
But I found it changed every time.
After dig a little further, I find that AuthorizeHandler tries to fetch sessionId by
headers.getAll("io")
, but always get empty.In the comment, it says will retrieve sessionId from io cookie. but the code tries to get sessionId from header directly.
Is it a bug? or am I missing anything?
The text was updated successfully, but these errors were encountered: