tomcat7修改session默认cookie名JSESSIONID配置
server.xml配置文件如下
复制代码
代码如下:
<Server port="9005" shutdown="SHUTDOWN">
<Service name="Catalina">
<Executor name="tomcatThreadPool"
maxThreads="500" minSpareThreads="10" maxIdleTime="600000"/>
<Connector port="80" protocol="org.apache.coyote.http11.Http11NioProtocol"
connectionTimeout="20000" executor="tomcatThreadPool" acceptorThreadCount="4"
redirectPort="8443" />
<Engine name="Catalina" defaultHost="localhost">
<Host name="localhost" appBase="webapps" unpackWARs="false" autoDeploy="false">
<Context path="" docBase="D:/WORKDIR/oschina/webapp" reloadable="false" sessionCookiePath="/" sessionCookieName="OSCHINA_SESSION"/>
</Host>
</Engine>
</Service>
赞 (0)