How can you set the session timeout in tomcat higher? Does anybody know how you can set the session time in tomcat higher? Now it is 30 minutes, but I want to set it higher.
André WolfYou should have a look at the Java Servlet Specification, v2.2 for more information. You download the specification at http://java.sun.com/products/servlet/download.html. [Tom Paris adds: Or, you can set it on a session basis with HttpSession.setMaxInactiveInterval(int interval); This will only work for the specific session. ]
You can specify the timeout of a session in the deployment descriptor of your web application (web.xml):
<web-app> <session-config> <session-timeout>60</session-timeout> </session-config> ... </web-app>
The number within the session-timout element must be expressed in minutes.