Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to perform DB operations during the session timeout in struts 1.3

 
Purushotham Honey
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
In my application, i need to perform some DB operations before session invalidates. How can i achieve this during the session timeout? Where should i write the code to perform DB operations?
 
Joe Ess
Bartender
Posts: 9319
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can have code execute when the session times out with a HttpSessionListener. See this page on the servlet life cycle.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic