1

I'm starting with Spring Security and would like to know if it's possible to get the last access time of logged user.

Filburt
  • 17,626
  • 12
  • 64
  • 115

1 Answers1

1

Yes, but you will have to track that information. For example: How to correctly update the login date time after successful login with Spring security?

There is no out of the box feature provided by Spring security.

Community
  • 1
  • 1
  • it works fine when user does login action, but I'm using the **Remember Me** feature , so I'd like to be notified on login AND on Rembember Me validation. Is it possible? – Guilherme Gotardo Apr 28 '14 at 14:50
  • If you are using Spring Security version >= 3.1.x then you will be able to use authentication success handler for remember me. Please check: https://jira.spring.io/browse/SEC-1603 and http://www.to-string.com/2012/07/11/springsecurity-capturing-rememberme-success-event/ – Pantelis Papapoulias Apr 28 '14 at 15:22