A Troung

A Troung

  • 1.5k
  • 139
  • 2.2k

Limit the number of login sessions per user

Dec 2 2021 4:52 AM

Hello,

I have an ASP.NET MVC C# application that users can log in to the system based on roles. I would like to limit the number of login sessions per user. Add event listener javascript to detect when the browser or current tab is closing and call the logout function

Any sample code on how to achieve the above tasks is much appreciated. Thanks in advance.   


 


Answers (2)