• Post Reply Bookmark Topic Watch Topic
  • New Topic

Session Invalidation

 
sajeev JS
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All
I want to reset a flag in database when session get expired.
How can I call a method at the very time when session expires.
Pls help me. It is urgent
with best regards
Sajeev
 
Pradeep bhatt
Ranch Hand
Posts: 8933
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Make use of HttpSessionBindingListener interface. Implement the interface and in the method valueUnbound(HttpSessionBindingEvent event) write the code to update the datbase field flag.
Register the HttpSessionBindingListener implementation class with the httpsession by using setattribute method.
 
sajeev JS
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your help Pradeep and expects the same in future too.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!