Tomcat 7 修改 Session 默认的 Cookie 名 JSESSIONID

[ 2012-04-04 18:02:07 | Author: zhenhua ]
Font Size: Large | Medium | Small
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>
</Server>
Comments Feed Comments Feed: http://www.zhenhua.org/feed.asp?q=comment&id=731
UTF-8 Encoding Trackback URL: http://www.zhenhua.org/trackback.asp?id=731

There is no comment on this article.

If you feel this site you find this information helpful, please click on the donation, which is voluntary,Thank you.
Post Comment
Smilies
[arrow] [biggrin] [confused] [cool]
[cry] [eek] [evil] [exclaim]
[frown] [idea] [lol] [mad]
[mrgreen] [neutral] [question] [razz]
[redface] [rolleyes] [sad] [smile]
[surprised] [twisted] [wink]
Enable UBB Codes
Auto Convert URL
Show Smilies
Hidden Comment
Username:   Password:   Register Now?
Security Code * Please Enter the Security Code