Log Out a Client Session From Another Client Session

Is there a way to log a user out of client session from another client session?

We currently control access to our projects using system.util.getSessionInfo() so that only one instance of a project can be logged in at a time. We want to create a supervisor client that allows them to log users off if needed, similar to the way that clients can be terminated through the gateway.

Does anyone have any advice?

Yes, you can do this by using the system.util.sendMessage function to send a message to any client that you want to logout. You will need to add a message handler to the project that receives the message to log out and logs the client out.

3 Likes