简体   繁体   English

JSESSIONID Cookie冲突

[英]JSESSIONID Cookie Conflict

Multiple tomcat6 server in single Server with same application on different ports. 单个服务器中的多个tomcat6服务器在不同端口上具有相同的应用程序

http://IPAddress:8080/manTest HTTP:// IP地址:8080 / manTest

http://IPAddress:8089/manLive HTTP:// IP地址:8089 / manLive

http://IPAddress:8056/manProduction HTTP:// IP地址:8056 / manProduction

While accessing this from IE9 , IE11 on same tabs, one instance will be working , all other instances will be redirected to login page. 当从IE9,IE11在相同选项卡上访问它时,一个实例将正常工作,所有其他实例将被重定向到登录页面。

I read in one article its because of JSESSIONID cookie conflict. 我在一篇文章中读到它因为JSESSIONID cookie冲突。

I have added the argument in CATALINA_OPTS 我在CATALINA_OPTS中添加了参数

-Dorg.apache.catalina.SESSION_COOKIE_NAME=TOMCAT8293JSESSIONID -Dorg.apache.catalina.SESSION_COOKIE_NAME = TOMCAT8293JSESSIONID

-Dorg.apache.catalina.SESSION_PARAMETER_NAME=tomcat8293jsessionid -Dorg.apache.catalina.SESSION_PARAMETER_NAME = tomcat8293jsessionid

But I still face the same problem. 但我仍面临同样的问题。

I remember one of the project I worked on, where we appended tomcat id and server id to JsessionId. 我记得我参与过的一个项目,我们将tomcat id和服务器id附加到JsessionId。 This was done in server.xml 这是在server.xml中完成的
note: we didn't change the cookie name but the value of the cookie was suffixed with tomcatid and serverid eg Jsessionid=xxxxxxxxt02d03 注意:我们没有更改cookie名称,但cookie的值后缀为tomcatid和serverid,例如Jsessionid = xxxxxxxxt02d03

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM