Skip to content

Persistent sid #1146

Mar 5, 2023 · 4 comments · 1 reply
Discussion options

You must be logged in to vote

Persistent SIDs are not possible. This is true for the JS and the Python versions of the server.

The tutorial you are reading implements a persistent session and user IDs as part of the application. This has nothing to do with the socket sid value, which is always unique and does not persist.

but it seems that it's not possible. If I understand it correctly, the only way would be for the server to have the ability to generate the sid based on the auth passed by the client

Yes, it is possible. Forget about the sid value and the user session feature provided by this package, and manage your own sessions, like your tutorial does. I think you are misunderstanding how this tutorial does this…

Replies: 4 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@se7entyse7en
Comment options

Answer selected by se7entyse7en
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants