Apache Tomcat应用程序的默认会话超时

在Tomcat5.5上部署的Web应用程序的默认会话超时是多less? 它是特定于浏览器吗? 在我的web应用程序中,缺省超时在web.xml和代码中都没有提及。

打开$CATALINA_BASE/conf/web.xml并find它

 <!-- ==================== Default Session Configuration ================= --> <!-- You can set the default session timeout (in minutes) for all newly --> <!-- created sessions by modifying the value below. --> <session-config> <session-timeout>30</session-timeout> </session-config> 

所有的webapps都默认从这个默认的web描述符inheritance。 您可以覆盖会话configuration以及在您的web.xml中定义的其他设置。

这实际上是从我的Tomcat 7(Windows),但我认为5.5 conf是不是很不一样