java - JSESSIONID is created with path having "/" at the end -
in clustered web application, jsessionid created path having "/" @ end. i'm using tomcat 8 , apache 2.4.
there neither sessioncookiepath attribute set in tomcat context.xml file nor there node present in server.xml file.
i wants know tomcat decides path jsessionid?
my apache clustering configuration below :
rewriteengine on rewritecond %{http_host} ^collabscrum3\.hqdev\.highq\.com rewriterule ^/$ https://collabscrum3.hqdev.highq.com/collabscrum4/ [r=permanent,l] <location /collabscrum3> addoutputfilterbytype deflate text/html text/javascript text/css text/xml application/javascript proxypass balancer://collabscrum3cluster/collabscrum3 timeout=120 stickysession=jsessionid|jsessionid nofailover=off </location> <proxy balancer://collabscrum3cluster> balancermember ajp://collabscrum3.hqdev.highq.com:10001 route=tomcat_8_1 timeout=120 ping=30 retry=60 balancermember ajp://collabscrum3.hqdev.highq.com:10031 route=tomcat_8_1_2 timeout=120 ping=30 retry=60 </proxy> is there other configuration file path jsessionidcookie decided tomcat?
since tomcat version 7 can set session cookie configuration:
file: /conf/context.xml -> <context sessioncookiepath="yourpath">
or application:
sessioncookieconfig sessioncookieconfig = getservletcontext().getsessioncookieconfig(); scc.setpath("yourpath"); 
Comments
Post a Comment