`

TOMCAT配置SESSION 失效时间

阅读更多
1.在你的tomcat\conf\web.xml中,查找session即可  
   
      <!--   ====================   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> 

  时间以分钟计算,默认应该是30分钟。你可以更改此时间。
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics