3 Replies Latest reply on Jun 29, 2006 8:40 AM by soshah

    Not Always taking to Home Page on session timeout

    apcac_bond

      I am using jboss 3.2.3. I want that whenever user logs in, he should be taken to default homepage and NOT to the page where he was, when the session get timed out.
      Can anybody help me how this can be done ??

        • 1. Re: Not Always taking to Home Page on session timeout
          apcac_bond

          Currently, jaas try to take the user the same page where the user was when the session timed out. I dont know where it remembers the last page accessed.

          • 2. Re: Not Always taking to Home Page on session timeout
            j2ee_junkie

            apcac_bond,

            There is no way to configure this from your application that I am aware of. You could extend Tomcat's FormAuthenticator. The extension would always return to a url set in an init param of your ServletContext when user successfully authentciates. This is just one idea.

            enjoy, cgriffith

            • 3. Re: Not Always taking to Home Page on session timeout
              soshah

              If you are using the FormAuthenticator you will have to integrate your custom FormAuthenticator to do this.

              You will need to extend org.apache.catalina.authenticator.FormAuthenticator and override the

              public boolean authenticate(HttpRequest request,
              HttpResponse response,
              LoginConfig config)

              method to redirect you to a URI of your choosing.

              You can integrate the custom FormAuthenticator in the authenticator.properties file in catalina.jar

              If you are using Basic/Digest I don't think you can do anything there