title: Perform custom event before Session Expiry in Spring
body: <p>I am beginner in Spring framework.</p>
  
  <p>In my case Session can be expire by following way<br>
  --> Success Log-out (Explicit Log-out )</p>
  
  <p>--> Session Timeout (Implicit Log-out )</p>
  
  <p>I  have do  DML(record insertion) in database whenever some user log in and I want to perform DML(record deletion) in database whenever user session timeout (Implicit Log-out).</p>
  
  <p>My Question is that is there any way in Spring that  tell us before the expiry of session.
  So I can do perform my custom event before session expiry.</p>
  
  <p>Thanks in advance</p>