You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Saikat Chatterjee <sa...@interrait.com> on 2000/12/15 07:36:12 UTC

Servlet timeout

Hello all,
            I have a question regarding 'timeout' period of a servlet.
Is it possible for me to set this 'timeout' period of a servlet in
Tomcat?There must be some configuration file where i can set this.

Thanks in advance,

Saikat


Server Side Include in Tomcat

Posted by Narayanan <na...@enhanindia.com>.
   I tried to invoke a Server Side include in a shtml file. Iam using Tomcat
3.2.1 Filter with Apache. It is not giving any error but the servlet is not
getting invoked.

  Iam unable to use Post method on a .shtml file.

  Thanks a lot in advance,
  Narayanan



Re: Servlet timeout

Posted by Kief Morris <ki...@bitBull.com>.
Saikat Chatterjee typed the following on 12:06 15/12/2000 +0530
>Hello all,
>            I have a question regarding 'timeout' period of a servlet.
>Is it possible for me to set this 'timeout' period of a servlet in
>Tomcat?There must be some configuration file where i can set this.

I'm not sure what you mean by timeout period for a _servlet_, but
the timeout period for _sessions_ can be modified in your web.xml
file:

<session-config><session-timeout>10</session-timeout></session-config>

The value is a whole number of minutes. Setting it to -1 means sessions
will never expire (not recommended!)

You can also change it dynamically by calling HttpSession.setMaxInterval(),
which takes a number of seconds rather than minutes.

Kief

---
              bitBull makes the Internet bite: http://www.bitBull.com/demos/