0 Replies Latest reply on Aug 3, 2012 5:15 PM by filosofisto

    SessionInvalidatedEvent does not works

    filosofisto

      Hi people,

       

      I have an observer for SessionInvalidatedEvent, then my expectations about it is:

       

      1) When user logouts with #{identity.logout}, event fires!!

      2) When session timeout occurs, event fires!!!

       

      My Observer:

       

      public void onSessionInvalidate(@Observes SessionInvalidatedEvent evt) {

                          securityService.removerUsuarioLogadoPorSessionId(evt.getSession().getId());

      }

       

      Simply does not works!!

      Some help!?