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

    Prevent back page visit after logout in seam

    Eswaramoorthy S Newbie
      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";
          }

      }