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

Markdown is supported
Copy & paste or drag & drop images (max 30 MB per image)

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.

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    thomas created

    hi,

    thank you - working :)

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)