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

Q

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

✍: Guest

A

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.

2013-08-20, 2430👍, 0💬