delphiremobjects

RemObjects SDK - how to retrieve client GUID from server when connecting to server?


Does somebody know how to retrieve client GUID when connecting to server in RemObjects SDK ? (using SuperTCP/IP protocol)


Solution

  • To get the session ID of the current connection on the server, use SessionID property:

    SessionIDString := GUIDToString(Session.SessionID);
    

    The Session object is found in the uROSessions unit.

    To get the session ID on the client, use ClientID property:

    SessionIDString := GUIDToString(RemoteService.Message.ClientID);
    

    RemoteService is your connection's TRORemoteService object.