Skip to content

Commit

Permalink
0003618: If you access the web ux from two different symds instances on
Browse files Browse the repository at this point in the history
the same host with different ports the web ux becomes confused
  • Loading branch information
chenson42 committed Jul 5, 2018
1 parent 947474f commit 1b5e34d
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -283,8 +283,11 @@ public SymmetricWebServer start(int httpPort, int securePort, int httpJmxPort, M
.setInitParameter(WebConstants.INIT_PARAM_MULTI_SERVER_MODE, Boolean.toString(true));
}

webapp.getSessionHandler().getSessionCookieConfig().setName("JSESSIONID_" + (httpsPort > 0 && httpsEnabled ? httpsPort : "") + (httpEnabled && httpPort > 0 ? "_" + httpPort : ""));

server.setHandler(webapp);


Class<?> remoteStatusEndpoint = loadRemoteStatusEndpoint();
if (remoteStatusEndpoint != null) {
ServerContainer container = WebSocketServerContainerInitializer.configureContext(webapp);
Expand Down

0 comments on commit 1b5e34d

Please sign in to comment.