`
Ben.Sin
  • 浏览: 230558 次
  • 性别: Icon_minigender_1
  • 来自: 广州
社区版块
存档分类
最新评论

Tomcat设置Session time out的时间

    博客分类:
  • Java
阅读更多

在Tomcat中的conf/web.xml可以找到以下script

<session-config>
        <session-timeout>30</session-timeout>
</session-config>
 

默认是30分钟的session时间,只要修改这个时间就可以达到修改session的时效。

当这个值为0或者小于0的时候,就表示session不会发生time out的情况。

分享到:
评论

相关推荐

    Nginx+Tomcat负载均衡

    这个设置是主要用以tomcat的集群。 如果看不懂可以去看我提供的tomcat我已经改好了。 启动tomcat服务 分别到两个tomcat下,直接双击D:\server\apache-tomcat-6.0.39_1\bin\startup.bat启动tomcat1 D:\server\apache-...

    Java中设置session超时(失效)的三种方法

    request.getSession()可以帮你得到HttpSession类型的对象,通常称之为session对象,session对象的作用域为一次会话,通常浏览器不关闭,保存的值就不会消失,web.xml中有一个session time out的地方,tomcat默认为30...

    Memchached+Tomcat6|7session共享 kryo序列化所需要包

    Memchached+Tomcat6|7session共享 kryo序列化所需要包 (已经更新至1.8.2版本) 1.将所有的包拷贝至...- operation timeout: 1000 - node ids: [n1] - failover node ids: [] - storage key prefix: null --------

    tomcat配置文件web.xml与server.xml解析

    &lt;session-timeout&gt;30&lt;/session-timeout&gt; &lt;/session-config&gt; 在上面的配置中,定义了 Session 的超时时间为 30 分钟。 4. MIME 类型映射配置 MIME 类型映射配置用于定义文件扩展名和 MIME 类型之间的映射关系。...

    cognos report 优化

    2.4 session-timeout 3 Cognos ReportNet配置文件修改 3.1 warpproperties.xml 3.1.1 VirtualMemoryDiagnostics 3.1.2 MaxCachedQueries 3.2 reportservice.xml 3.2.1 max_process 3.2.2 linger_process ...

    tomcat8 + nginx + memcached + cas 实现负载均衡的配置包

    # ssl_session_timeout 5m; # ssl_ciphers HIGH:!aNULL:!MD5; # ssl_prefer_server_ciphers on; # location / { # root html; # index index.html index.htm; # } #} } 3,cas的配置(): 3.1 修改/...

    nisi脚本配置jdk tomcat mysql redis

    SendMessage ${HWND_BROADCAST} ${WM_WININICHANGE} 0 "STR:Environment" /TIMEOUT=5000 SetOverwrite on functionend ;注册服务 Function "installService" detailprint "------------------------------------...

    Nginx安装包

    这里我们所需等待时间 = proxy_connect_timeout + fail_timeout*max_fails,所以我如下配置只需等待3秒,nginx便会将请求转给tomcat2,还是在能接受范围内的。 4.小结 该说的在前文也说了,总而言之,spring...

    新版JSP+JQUERY+AJAX+Mysql聊天室小程序JASChatWeb1.0

    (2)打开tomcat/conf/web.xml文件 ,找到 &lt;session-timeout&gt;30&lt;/session-timeout&gt; 一行, 把30改成 1-5的数(作用设置是session超时时间,用于扑捉用户直接关闭浏览器时的下 线状态) 完成以上两步后打开tomcat即可在...

    cas 配置client 1.0 &2.0 及proxy DEMO 说明

    org.jasig.cas.client.session.SingleSignOutFilter &lt;filter-name&gt;CAS Single Sign Out Filter &lt;url-pattern&gt;/* &lt;filter-name&gt;CAS Validation Filter &lt;url-pattern&gt;/* &lt;filter-name&gt;CAS...

    spring web flow demo

    Spring Web Flow 2.0 入门 本教程分析了 Spring Web Flow ...&lt;session-timeout&gt;100&lt;/session-timeout&gt; &lt;/session-config&gt; 然而,现实中的 session 范围更像是“鸡肋”,把大量数据放入 session 会导致严重的效率问题,

    2023年JavaWeb知识点.docx

    Session的生命周期涉及创建、活跃、_timeout、销毁四个阶段。 二十一、说一说HttpServletRequest对象作用域? HttpServletRequest用于一次客户端请求过程。对于每一个请求,由一个工作线程来执行,都会创建有一个...

    jpivot学习总结.doc

    approxRowCount 该属性可以用来提高性能,可以通过指定一个数值以减少判断级别、层次、维度基数的时间,该属性在通过使用 XMLA 连接 Mondrian 很有用处。 caption 标题 , 在表示层显示的 captionColumn 用来...

    SpringMVC-Mybatis-Shiro-redis-master 权限集成缓存中实例

    &lt;constructor-arg index="3" value="5000" name="timeout" type="int"/&gt; &lt;!-- 这种 arguments 构造的方式,之前配置有缺点。 这里之前的配置有问题,因为参数类型不一致,有时候jar和环境的问题,导致...

    Servlets和JSP核心技术 卷2(英文版) 第一部分

    Configuring Tomcat to Use SSL Section 3.6. WebClient: Talking to Web Servers Interactively Section 3.7. Signing a Server Certificate Chapter 4. Programmatic Security Section 4.1. Combining ...

    Servlets和JSP核心技术 卷2(英文版) 第二部分

    Configuring Tomcat to Use SSL Section 3.6. WebClient: Talking to Web Servers Interactively Section 3.7. Signing a Server Certificate Chapter 4. Programmatic Security Section 4.1. Combining ...

    外文翻译 stus MVC

    By the time the event gets here, the input form data (or HTML form data) has already been translated out of the request stream and into an ActionForm class. Struts, an MVC 2 implementation Struts...

    pro_apache_third_edition..pdf

    Contents About the Author...............................................................................................xix About the Technical Reviewer and Contributing Author.................xxi ...

Global site tag (gtag.js) - Google Analytics