Programming Tips - Jetty 8.1.x: Change JSESSIONID used for session cookie

Date: 2021feb22 Product: Jetty Language: xml Keywords: getSession, SessionManager, Jetty8 Q. Jetty 8.1.x: Change JSESSIONID used for session cookie A. In the WEB-INF/web.xml that is part of your .war:
<?xml version="1.0" encoding="ISO-8859-1"?> <web-app ... version="3.0"> ... <context-param> <param-name>org.eclipse.jetty.servlet.SessionCookie</param-name> <param-value>MY_JSESSIONID</param-value> </context-param> ...