Base solution for your next web application
Open Closed

OnlineClient / OnlineClientManager #1449


User avatar
0
thomas created

Hi all,

We want to use the OnlineClient/OnlineClientManager to prevent a user from multiplie login from different machines.

How to implement the OnlineClient/OnlineClientManager to check if the same user is already logged in and popup a message to - "Current user is already logged in"

Thank you Kind regards, Thomas


2 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    On the login method, after getting user's id and tenantId, you can use OnlineClientManager's IsOnline or GetAllByUserId extension methods to check if user is already online or already has a connected client.

    The you can cancel (signout ) the current login attepmt and return appropriate response to client.

  • User Avatar
    0
    thomas created

    hi,

    thank you - working :)