Why do we need a sessionID? #4277
Answered
by
darrachequesne
Gua-naiko-che
asked this question in
Q&A
-
This is a question about an implementation detail in the documentation examples. Here it says
Why do we need a session ID different from the user ID? Wouldn't it be enough just to use a server-generated user ID for both message exchanging identifier and for identifying the user upon reconnection? |
Beta Was this translation helpful? Give feedback.
Answered by
darrachequesne
Feb 12, 2022
Replies: 1 comment
-
Hi! That's because the session ID must be kept private, else anyone could authenticate as a given user (since the user IDs are shared to all the other users). |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Gua-naiko-che
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi! That's because the session ID must be kept private, else anyone could authenticate as a given user (since the user IDs are shared to all the other users).