Disable Tomcat session persistent when restart tomcat

1. 第一种方法,编辑${CATALINA_HOME}/conf/context.xml文件,将以下行的注释打开,然后重新启动Tomcat

2. 第二种方法,编辑具体的webapp的context.xml文件,这个文件有可能是${CATALINA_HOME}/conf/Catalina/localhost/<myapp>.xml,也有可能是${CATALINA_HOME}/webapps/<myapp>/META-INF/context.xml,编辑这个文件,加入以下行,然后重新启动Tomcat。
    

posted @ 2010-10-25 17:08  程序员天下  阅读(187)  评论(0编辑  收藏  举报