May 7th, 2012, 01:11 PM
Displaying user's last request
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.
May 13th, 2012, 02:47 AM
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.