[ 
https://issues.apache.org/jira/browse/ARTEMIS-5719?focusedWorklogId=988835&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-988835
 ]

ASF GitHub Bot logged work on ARTEMIS-5719:
-------------------------------------------

                Author: ASF GitHub Bot
            Created on: 24/Oct/25 15:49
            Start Date: 24/Oct/25 15:49
    Worklog Time Spent: 10m 
      Work Description: jbertram commented on code in PR #6004:
URL: https://github.com/apache/activemq-artemis/pull/6004#discussion_r2461039384


##########
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:
   Even without invoking `setSessionPath` the test still succeeds. Are you sure 
this is necessary?





Issue Time Tracking
-------------------

    Worklog Id:     (was: 988835)
    Time Spent: 40m  (was: 0.5h)

> 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: 40m
>  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


Reply via email to