Difference between HttpSessionAttributeListener and HttpSessionBindingListener
Servlet API in Java EE defines different types of event listener interfaces for watching changes in HttpSession. Two of these interfaces namely HttpSessionAttributeListener and HttpSessionBindingListener cause confusion among programmers. These interfaces enable 2 different ways of handling session changes. This article explains each listener with an example. HttpSessionAttributeListener Interface A class can implement HttpSessionAttributeListener interface […]