Em JAVA, uma classe que recebe a notificação se um atributo for adicionado ou removido de uma sessão implementará a interface
HttpSessionListener
HttpSessionObjectListener
HttpSessionBindingListener
HttpSessionAttributeListener
HttpSessionClassListener