0 Replies Latest reply on Aug 3, 2012 5:15 PM by Eduardo Ribeiro Silva

    SessionInvalidatedEvent does not works

    Eduardo Ribeiro Silva Newbie

      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!?