security - Concurrent user Login in spring mvc -


I currently have a problem implementing concurrent user sessions in Spring MVC. My requirement is that "I have a web application that uses Spring MVC, and I have my own entry form and I have not implemented spring protection yet (meaning that I have my web application No role-based user restriction is configured in). Only one user with the same username to log in from a machine.

My requirement:

  • One user per session
  • I have surfed, but no useful links or project
  • There is no role-based restriction
  • Once your own login form and user is logged in, the user object (containing the username is password) is stored in the session object
  • If user logs a second time If the user tries, the previous user session should be terminated and new users (other users) should be allowed on the home page.
  • Can a Solution, Link or Example Project Provide? Many thanks in advance :)

    Why not just go ahead and use spring protection? This will take care of passive sessions for you, you can use your own login form and you can not restrict any of your last points based on roles.

    You can configure the maximum number of sessions:


    Comments

    Popular posts from this blog

    apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

    c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

    c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -