brusdev commented on code in PR #6004:
URL: https://github.com/apache/activemq-artemis/pull/6004#discussion_r2461139143
##########
artemis-web/src/main/java/org/apache/activemq/artemis/component/WebServerComponent.java:
##########
@@ -194,6 +194,8 @@ public synchronized void start() throws Exception {
WebAppContext webContext = createWebAppContext(app.url,
app.war, dirToUse, virtualHosts[i]);
handlers.addHandler(webContext);
webContext.getSessionHandler().getSessionCookieConfig().setComment("__SAME_SITE_STRICT__");
+
webContext.getSessionHandler().getSessionCookieConfig().setName("JSESSIONID_" +
i + "_" + connector.getPort());
+
webContext.getSessionHandler().setSessionPath(webContext.getContextPath());
Review Comment:
You are right, this is because the jetty AbstractSessionManager sets the
sessionPath to contextPath if the sessionPath is null when the server starts. I
added that line to set it explicitly.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information, visit: https://activemq.apache.org/contact