ITeye博客

Tomcat的Session设置

123003473 · 2012-11-24 00:37 · jsp/servlet · tomcat · Session · 开源软件 · Markdown

1、为单个WEB设置SESSION 在WEB.XML中添加 xml 代码 [code="java"] 1. 2. 3. 15//单位为分钟 4. 5.[/code] 2、为单个Servlet指定会话超时时间 xml 代码 [code="java"] 1. 2. Servlet名称 3. Servlet类路径 4. 5. timeout 6. 600 7. 8. [/code] 当Servlet与默认时间不同且大于-2时,以Servlet时间为准 1、为所有WEB设置SESSION 在\CONF\WEB.XMLWEB.XML中添加 xml 代码 [code="java"] 1. 2. 3. 15//单位为分钟 4. 5.[/code] 【转载地址】http://mqzsweet.iteye.com/blog/141938

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。