Results 1 to 3 of 3

Thread: Invalidate another user's session just after admin locks a user

  1. #1
    Join Date
    Dec 2011
    Posts
    2

    Default Invalidate another user's session just after admin locks a user

    Hello,

    Could you please help me with my problem?

    We are using spring 3 and spring security.
    Our problem is that we need invalidate another user's session immediately (or almost immediately) after admin locks a user in admin panel.
    User could be logged in at that moment. Then the admin locks the user, and after the user tries to make any activity on server side by clicking some buttons, it will be redirected to login page and have to login again.

    Is there something embedded in spring security to do so?
    Maybe get somehow a logged users list, then mark particular session as invalid?

  2. #2
    Join Date
    Dec 2008
    Location
    India
    Posts
    295

    Default

    Spring does not provide it as a out of box but ya it allows you to do same using SessionRegistry.

    to get user session you can use SessionRegistry. You may need to write the code to do next invalidation for particular user, may be like remove session stored at server side, so whenever user try to click he/she will redirect to login page/lock msg.
    Enjoy
    Rohan Chauhan
    ------------------------------------------------------------------------------
    SpringSource Certified Spring 3.0 Professional


  3. #3
    Join Date
    Dec 2011
    Posts
    2

    Default

    Thanks for the answer!
    Will dig in that direction.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •