DEVFYI - Developer Resource - FYI

How can my application get to know when a HttpSession is removed?

JSP Interview Questions and Answers


(Continued from previous question...)

64. How can my application get to know when a HttpSession is removed?

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.

Other Interview Questions