编程语言
首页 > 编程语言> > java – Apache Tomcat应用程序的默认会话超时

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

作者:互联网

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

解决方法:

打开$CATALINA_BASE / conf / web.xml并找到它

<!-- ==================== 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描述符.您可以覆盖session-config以及web.xml中定义的其他设置.

这实际上来自我的Tomcat 7(Windows),但我认为5.5 conf并没有太大的不同

标签:java,apache,session-timeout,tomcat5-5
来源: https://codeday.me/bug/20190928/1826572.html