Setting in the Tomcat (?) props should do it. I would go this route unless it gives
you problems, then you could hardcode it (or put the value in a properties file,
load it at startup time and call setMaxInactiveInterval to set it manually). Of
course, if the value has major significance for you application, I would consider
not setting it in your servlet engine config, because you'd want to embed that
configuration in your app explicitely (so in that case I would go the hardcoded or
app properties file route).

cheers
Rob

Marino Vittorio wrote:

> Sorry aboout all the questions I am posting here but I've got a time
> critical app to set up as fast as I can. I am setting a timeout for my
> sessions, but I cannot figure out if I should use the session timeout prop
> of my servlet container or use the setMaxInactiveInterval method of the
> session object. Which one is safer? Do I need to set both?
> Thanks

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to