首页 > 网站 > CMS建站 > 正文

tomcat7修改session默认cookie名JSESSIONID配置

2020-07-14 13:31:37
字体:
来源:转载
供稿:网友

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>

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表