Originally posted by William Brogden:
For one thing, the HttpSessionBindingListener interface solves a problem related to the handling of user session invalidation. A session can become invalidated by:
1. The action of your servlet - when a user logs out
2. The action of the servlet container - at expiration of the timeout
If you have an object that has to do some "cleanup" before it is discarded, have it implement HttpSessionBindingListener.
Bill
William,
I think HttpSessionListener for what you meant.
HttpSessionBindingListener is typically used to get notified when a object is set in or removed from session scope using setAttribute or removeAttribute method of HttpSession.
is it not always called back whenver we manipulate the session object?
Did I misunderstand that?

[ June 13, 2006: Message edited by: Dilip Kumar Jain ]