Disable Concurrent Logins from the Same Account

Disable Concurrent Logins from the Same Account


Hi all,

    Is there a way to configure outsystems such that each user account can only have one login?

    For example, user A logins from laptop A. If user A attempts to login from laptop B, the first session on laptop A is terminated.



Hi Yih,

I do not know of a way to automatically do that in a configurable way. But you can do something like this:

  • Have an Entity that stores for each user its session and if its valid or not.
  • Use the System Events OnSessionStart and OnBeginWebRequest (on the Server Actions) to:
    • on OnSessionStart invalidate, in the entity, the record for that user (if it exists) and record the new Session in that entity
    • on OnBeginWebRequest check, in the entity, if the record for that user and session is valid or not. If it's not valid do a Logout.

This will not automatically terminate the the first session. It will only terminate when user A tries to do something in laptop A after doing something in laptop B.

Tell me if it works, because I haven't tried. :)




Hi Jose,

     Thanks. I tried and it works.