2 Replies Latest reply on Dec 29, 2011 5:00 AM by poornima.abhi

    How to handle session time out issue?

    poornima.abhi

      Hi All,

       

      I have a web application deployed in GateIn 3.1.I have set session time out parameter in GateIn-3.1.0-GA\server\default\deploy\gatein.ear\02portal.war\WEB-INF\web.xml, say 5 min

       

      <session-config>

            <session-timeout>5</session-timeout>

         </session-config>

       

      How can i be redirected to login page on after being session timed out, means when after being idle for 5 min, and then clicking on a portlet, i should be redirected to login page.And also, how can i set a custom messge in login page, saying the customer that 'your session has been timed out, have to relogin'.Any means to achieve these two things....Plzz help...

       

       

      Thanks

        • 1. Re: How to handle session time out issue?
          vstorm83

          It is depend on how you secure your application. By default, GateIn 3.1 use JAAS (config "protected url patterns" and the login page in web.xml of portal.war) so if a user click on "protected" link after he has logged out, the page should be redirected to login.jsp automatically

          • 2. Re: How to handle session time out issue?
            poornima.abhi

            Thanks for the quick reply.

             

            What i understood from ur reply is that the session time out is handled by Gatein itself(by its JAAS technology) and it is itself forwarding to login.jsp

            Pls correct me if am wrong.

            If this is the case, is there any way to track that we have been forwarded to login page by the session time out issue?Then , i would be able to set the custom message.Plz help..