tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ionut Stoian <>
Subject Re: sessionCookieDomain and sessionCookiePath
Date Thu, 10 Nov 2011 08:39:47 GMT

I have an application serving several subdomains (, etc.) and i want to be able to have a single session cookie
shared between subdomains (registered on domain "").

However, when using Tomcat's sessionCookieDomain (tried on versions 6.0.33,
7.0.22) i don't get the expected behaviour:
1. If i set the sessionCookiePath to "\test" for example i get only one
JSESSIONID cookie with domain "", but the path obviously is set
to "/test".
2. If i set the sessionCookiePath to "\", "" or if i don't set it at all, i
get a JSESSIONID cookie with domain "" and a JSESSIONID cookie
with domain "", which is not what i expect.

As a side note, on Tomcat 6.0.33 i also tried using the emptySessionPath
attribute for the connector, but that did not help either.

Can you please spot the error in my logic and guide me through the right
steps to achieve this single JSESSIONID cookie?


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message