打开 关闭

How to Restrict user to multiple login session #1916


User avatar
0
KuldeepRathi 创建

We want to restrict user multiple login session at time, there should be single active login session.

user should be allowed to be logged in to one application from only one browser at a time. When user logs in then server should check his current active sessions to the same application from other browsers. If there is then log out from everywhere else and keep only newest session.

so any provision available in abp.io commercial module ?


5 答案
  • User Avatar
    0
    maliming 创建
    支持团队 Fullstack Developer

    hi

    See https://support.abp.io/QA/Questions/536/How-to-Restrict-users-multiple-login-session

  • User Avatar
    0
    KuldeepRathi 创建

    i already tried this but it's not working,

    this piece of code add in WebModule

    any another configuration ?

  • User Avatar
    0
    maliming 创建
    支持团队 Fullstack Developer
    • ABP Framework version: vX.X.X
    • UI type: Angular / MVC / Blazor
    • DB provider: EF Core / MongoDB
    • Tiered (MVC) or Identity Server Separated (Angular): yes / no
  • User Avatar
    0
    KuldeepRathi 创建

    i already tried this but it's not working,

    this piece of code add in WebModule

    any another configuration ?

    any other configuration for Restrict user to multiple login ?

  • User Avatar
    0
    maliming 创建
    支持团队 Fullstack Developer

    hi

    You can add a special column for IdenttiyUser, change it after logging in, and check it in the logged-in request.

Made with ❤️ on ABP v8.2.0-preview Updated on 三月 25, 2024, 15:11