zoukankan      html  css  js  c++  java
  • 设置session失效时间

    以X5部署在Tomcat上为例,说明如何设置session失效时间。

    可以设置session失效时间的地点有三处,分别是

    1、BusinessServer的session设置
    untimeBusinessServerWEB-INFweb.xml
            <session-config>
                    <session-timeout>30</session-timeout>
            </session-config>

    2、UIServer的session设置
    untimeUIServerWEB-INFweb.xml
            <session-config>
                    <session-timeout>720</session-timeout>
            </session-config>

    3、Tomcat的session设置
    apache-tomcatconfweb.xml
        <session-config>
            <session-timeout>30</session-timeout>
        </session-config>

    以上列出的均为默认设置,单位是分钟,可根据实际需要进行修改。
    这三个设置生效的优先级为:对于BusinessServer来说,如果设置了BusinessServer的session,就会使用BusinessServer的session设置,否则使用Tomcat的session设置。同样,UIServer也是如此。

  • 相关阅读:
    sshd
    eclipse运行报java.lang.OutOfMemoryError: PermGen space解决方法
    项目之间依赖
    shell-
    部署记录
    mysql index使用
    GitHub上搭建私人hexo博客操作教程
    关于Vue实例的生命周期(2)
    JS中的五种去重方法
    Vue入门教程(2)
  • 原文地址:https://www.cnblogs.com/kingxiaozi/p/4738310.html
Copyright © 2011-2022 走看看