2 Replies Latest reply on Aug 2, 2010 6:09 AM by maruthyshetty

    Session time out and Logout issue

    maruthyshetty

      Hi All


      I am having following issue please help me


      1. Can we make session never to time out.

      2. Can we log out a user after a fixed time. In case a user has loged in and forgets to log out. The person who has logged in should be automaticaly logged out.



      Thanks


      Maruthy

        • 1. Re: Session time out and Logout issue
          khosro_question

          There is a configuration in web.xml to configure session timeout.


          <!-- It means after 30 minutes session timed-out-->
              <session-config>
                  <session-timeout>30</session-timeout>
              </session-config>
          
          


          Khosro.

          • 2. Re: Session time out and Logout issue
            maruthyshetty

            Thanks for reply Khosro Asgharifard


            The configuration which you sent timeouts the session after 30 seconds.


            But how can i achieve following in a single context


            First :Can we make session never to time out. For example home page
            Second :Can we log out a user after a fixed time.For Example other pages


            Thanks in Advance
            Maruthy