Tomcat中会话的超时间隔可以在Web.xml文件中配置,如下:
<session-config> <session-timeout>30</session-timeout> </session-config>
时间值单位是[color=red]分钟[/color]。如果将元素中的时间值设置为[color=red]0[/color]或者一个[color=red]负数[/color],则表示会话永不超时。
手机扫一扫
移动阅读更方便
你可能感兴趣的文章