title: Keep record of login time and session duration - Java - Spring Security
body: <p>I am developing a webapp that uses Spring Security as security layer.</p>
  
  <p>One important feature for us is to know which user is accessing the application, and how many time they are spending on it.</p>
  
  <p>I'm not sure how to deal with it. Is there some other framework that deals with this kind of usage statistics?</p>
  
  <p>Is there some way to use Spring Security itself to deal with it?</p>
  
  <p>// I'm reading more about Spring Security and it seems that its filters can help me. Any progress will be shared here.</p>