Open Closed

How to Restrict user to multiple login session #1916


User avatar
0
KuldeepRathi created

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 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

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

  • User Avatar
    0
    KuldeepRathi created

    i already tried this but it's not working,

    this piece of code add in WebModule

    any another configuration ?

  • User Avatar
    0
    maliming created
    Support Team 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 created

    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 created
    Support Team 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 v9.1.0-preview. Updated on November 11, 2024, 11:11