[
https://issues.apache.org/jira/browse/ARTEMIS-5719?focusedWorklogId=988838&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-988838
]
ASF GitHub Bot logged work on ARTEMIS-5719:
-------------------------------------------
Author: ASF GitHub Bot
Created on: 24/Oct/25 16:02
Start Date: 24/Oct/25 16:02
Worklog Time Spent: 10m
Work Description: 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.
Issue Time Tracking
-------------------
Worklog Id: (was: 988838)
Time Spent: 50m (was: 40m)
> Login to web console causes logout from other web consoles
> ----------------------------------------------------------
>
> Key: ARTEMIS-5719
> URL: https://issues.apache.org/jira/browse/ARTEMIS-5719
> Project: ActiveMQ Artemis
> Issue Type: Bug
> Reporter: Domenico Francesco Bruscino
> Assignee: Domenico Francesco Bruscino
> Priority: Major
> Labels: pull-request-available
> Time Spent: 50m
> Remaining Estimate: 0h
>
> When the web consoles of multiple broker instances have the same hostname and
> different ports, users can log in to one web console at a time by using a
> single browser. This is because the session cookie name and domain are the
> same for all the web consoles.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information, visit: https://activemq.apache.org/contact