Friday, March 13, 2009

How can my application get to know when a HttpSession is

Question :How can my application get to know when a HttpSession is
removed? (JSP)

Answer :Define a Class HttpSessionNotifier which implements
HttpSessionBindingListener and implement the functionality what you need
in valueUnbound() method.
Create an instance of that class and put that instance in HttpSession.

No comments: