2 Replies Latest reply on May 7, 2009 9:55 PM by valatharv

    Seam configuring session timeout, never to expire

    valatharv
      Hi,

      I have a requirement, to change session timeout so that it never expires.

      Please suggest what will be the best setting...

      a) components.xml : How can I make sure that session never expires
      <core:manager concurrent-request-timeout="500"
                       conversation-timeout="120000"
                       conversation-id-parameter="cid"
                       parent-conversation-id-parameter="pid"/>
        

      b) web.xml
      I can provide timeout to 0, is it the right way....
      <session-config>
             <session-timeout>0</session-timeout>
      </session-config>
        • 1. Re: Seam configuring session timeout, never to expire
          gonorrhea

          web.xml:


           <session-config>
                <session-timeout>-1</session-timeout>
           </session-config>



          as per Servlet 2.4 spec:


          The session-timeout element defines the default
          session timeout interval for all sessions created
          in this web application. The specified timeout
          must be expressed in a whole number of minutes.
          If the timeout is 0 or less, the container ensures
          the default behaviour of sessions is never to time
          out. If this element is not specified, the container
          must set its default timeout period.

          • 2. Re: Seam configuring session timeout, never to expire
            valatharv

            Thanks for the reply...


            Yes, web.xml is fine, I was wondering if I need to change anything in components.xml