tomcat7修改session默认cookie名JSESSIONID配置
发布时间:2017-01-04 来源:查字典编辑
摘要:server.xml配置文件如下
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:WORKDIRoschinawebapp" reloadable="false" sessionCookiePath="/" sessionCookieName="OSCHINA_SESSION"/>
</Host>
</Engine>
</Service>