4 Replies Latest reply on Jul 20, 2012 12:06 PM by Jason Porter

    Is it necessary for the Seam IdentityImpl.logout() to invalidate the session?

    John Markakis Newbie

      The Seam 3.1 IdentityImpl.logout() invalidates the session and the session parameters (eg. the user selected language) are lost. Is it necessary? Would I break something if I extend the class and skip the session invalidation?

       

      @Named("identity")
      @SessionScoped
      class IdentityImpl implements Identity, Serializable {
           ...
           public void logout() {
                ....
                session.invalidate();
                ...
           }
      
           ...
      }   
           
      

       

      Thanks,

      John