SessionID vs. ClientID vs. UserID

Hi,

Can you explain to mi what is basic difference between SessionID, ClientID and UserID.

I’m not sure that i understand difference.

Thanks for explanation.

Hello,

RO server uses sessions for authentication and storing client data (http://wiki.remobjects.com/wiki/Session_Management). Every session on the server has unique GUID - SessionID. Server uses Session manager to store sessions and look for session by SessionID.

Every message passing between client and server contains GUID too - ClientID. Server reads ClientID from the message and identifies the client. After successful logging in Session manager creates session for the client and it’s GUID is used for all the following messages with the client. Thus in this case SessionID and ClientID are equal.

UserID term is used for login operations either for session management (for example http://wiki.remobjects.com/wiki/UserInfo_Class_(Delphi)#UserID, http://wiki.remobjects.com/wiki/Authentication_and_application_security_(Delphi)#LoginService.SimpleLoginServiceLogin) or for accessing DB (http://wiki.remobjects.com/wiki/TDAConnectionManager_Class#NewConnection). It is simply name of the user.

Hope this helps

Hi. Yes helps. Thanks.

In what case ClientID and SessionID is not same (equal) ?

Hi.

Message always have some arbitrary ClientID.
After successful login server creates session for client and this SessionID is assigned to ClientID of message which is returned to client.

Thank you.