Hi.Based from SCWCD book of sybex, it says that when a session timeout, the HttpSessionBindingListener will be called not the HttpSessionAttributeListener.
I have tried some sample web application, both have a HttpSessionAttributeListener and HttpSessionBindingListener.I have created a session in my servlet using request.getSession(), then added an attribute( request.getSession().setAttribute("test","test")).The attributeAdded of the HttpSessionAttributeListener was called ( not the valueBound of HttpSessionBindingListener) and when i try to call the invalidate() method(HttpSession), still the HttpSessionAttributeListener was called (thru the method attributeRemoved).
can anybody explain about this?or there's something wrong about the explanation of sybex?
btw, im using tomcat4.1.8.
thanks.
raymond