0 Replies Latest reply on Aug 9, 2010 6:38 AM by eswaramoorthy1986

    Prevent back page visit after logout in seam

    eswaramoorthy1986
      Dear All



      how to  prevent back page visit after logout in seam . I would be thankful if you could help me on this issue

      I use this code for logout

      Name("authenticator")
      public class Authenticator
      {
          @Logger private Log log;

          @In Identity identity;
         
          public String authenticate() {
               log.info("User logged in: " + identity.getPrincipal().getName());
               
              return "home";
          }
         
          public String logout() {
             log.info("User logging out..");
               identity.logout();
               Session.instance().invalidate();
               return "login";
          }

      }