7 Replies Latest reply on Mar 23, 2017 3:54 PM by Aymen Kanzari

    session invalid

    Aymen Kanzari

      Hi all,

       

      when the app is inactive, how can i fixe the number of minutes after which the session becomes invalid, for example if i'm not surfing the app, after 3 minuts the app automatically does a logout

       

      Thanks

        • 1. Re: session invalid
          Kavimani Gunasekaran

          Hi Aymen, Follow the below ,

           

          For Weblogic,

           

          Option 1:-

          Open web.xml, add the below contents,

          <session-config>         <session-timeout>60</session-timeout></session-config>

          Option 2:-

          open weblogic.xml add the below ,

           

          <session-descriptor>

                 <session-param>

                     <param-name>TimeoutSecs</param-name>

                    <param-value>3600</param-value>

                </session-param>

          </session-descriptor>

           

          note:- Note that the timeout value set in web.xml takes precedence over weblogic.xml

           

          For Jboss:-

          navigate to

           

          server/<server>/deploy/jboss-web.deployer/conf

          <session-config>         <session-timeout>60</session-timeout></session-config>

          ~regards, Kavimani Gunasekaran

          • 2. Re: session invalid
            Aymen Kanzari

            Hi,

             

            I made the following configuration, but it does not work, i want to configure the timeout in 5 minutes

             

            web.xml

            <session-config>

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

            </session-config>

             

            weblogic.xml

            <session-descriptor>

            <timeout-secs>300</timeout-secs>

            </session-descriptor>

             

            by default session timeout is 30 minutes, i set it 5 minutes

            /atg/dynamo/servlet/sessiontracking/SessionManager.properties

            sessionInvalidationTime=300

             

            to avoid the session expiration errors i used the CheckSessionExpiration servler

            /atg/dynamo/servlet/dafpipeline/CheckSessionExpiration.properties

            $class=atg.projects.b2bstore.servlet.WACheckSessionExpiration

            insertAfterServlet=/atg/dynamo/servlet/dafpipeline/SessionSaverServlet

            webAppRegistry=/atg/registry/webappregistry/ServletContextWebAppRegistry

            webApplicationName=AxeleateCommerce

            relativeExpirationPath=/

            relativeExpirationURL=/axeleatecommerce/myaccount/login.jsp

             

            inserting servlet in the pipeline

            /atg/dynamo/servlet/dafpipeline/DynamoHandler.properties

            insertableServlets+=CheckSessionExpiration

             

            insert CheckSessionExpiration into the servlet pipeline

            /atg/dynamo/servlet/Initial.properties

            initialServices+=/atg/dynamo/servlet/dafpipeline/CheckSessionExpiration

            • 3. Re: session invalid
              Kavimani Gunasekaran

              Hi, Try the below, Goto weblogic console --> selection deployment ---> select your server--> go to configuration. There try adjusting,

               

              ~regards, Kavimani Gunasekaran

              • 4. Re: session invalid
                RJ Nunes

                Hi Aymen,

                 

                Take a look also in User Session Timeout

                Changing the property singleSessionIdPerUser  to true in GenericSessionManager, then the changes made in web.xml worked.

                But side effect were noticed, so we did not change.

                 

                Hope it helps.

                • 5. Re: session invalid
                  Aymen Kanzari

                  Hi,

                   

                  when i change singleSessionIdPerUser to true it works, but it stays in the same page, how can i configure the redirection so that it redirect me to the login page when the session time is over

                   

                  Thanks

                  • 6. Re: session invalid
                    Kavimani Gunasekaran

                    Aymen, Concept here is Access Control Servlet .

                    • 7. Re: session invalid
                      Aymen Kanzari

                      Hi,

                       

                      When i change singleSessionIdPerUser to true, in the BCC when i create a new project i can not enter in this project, always it redirect me to the homepage.