A session, as you probably know, is often supported by cookies. A cookie has two values ββthat determine whether they should be returned by the browser for a specific request, cookieDomain and cookiePath. The cookie must match the request.
Request for
/some/request/for/this.html
The cookie will be returned using the path to the cookie:
/ /some /some/request
But not for the cookie path:
/other
By specification, a session is not shared between different web applications, so if you have the foo.war web application deployed to /foo , the session cookie path will be set to /foo by default.
Connector.emptySessionPath seems to be a protected variable on the connector. I have not read the code - but I think this has something to do with a Tomcat one-time subscription or sharing sessions where you enter the same context and authenticate at all - in this case the cookie path should be / for session cookies .
Martin algesten
source share