Announcement Announcement Module
Collapse
No announcement yet.
Displaying user's last request Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Displaying user's last request

    Hi guys,
    I apologize if this has been asked before. I have been working on creating an admin page that will display the user's that are currently logged in by using the session registry. I am able to display the users that are in the system and can expire their sessions/block them if necessary. I would like to also display the last page they requested, but I haven't been able to find a way to achieve this. I know the session registry contains the session id for each of the principals, but I am oblivious as to how to get each last request for each of the users or if this is even possible.

    Any help would be greatly appreciated.

    Thanks!

  • #2
    With my limited knowledge in Spring Security, i feel that Spring security might not be giving this detail. I think you can achieve this by doing the following:
    1. Write a cutom filter or interceptor which logs the user requested URL and persist in the DB.
    2. While displaying the details in sessionRegistry, you can use this to show the last accessed URL.

    Comment

    Working...
    X