From: markt Date: Mon, 6 Oct 2008 18:25:55 +0000 (+0000) Subject: Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=45951 X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=64c8eacc464deecad480c1d32f98e9adf8df959d;p=tomcat7.0 Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=45951 Based on jfclere's patch git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@702219 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/java/org/apache/catalina/Globals.java b/java/org/apache/catalina/Globals.java index 39dfb526e..597113cea 100644 --- a/java/org/apache/catalina/Globals.java +++ b/java/org/apache/catalina/Globals.java @@ -269,14 +269,18 @@ public final class Globals { * The name of the cookie used to pass the session identifier back * and forth with the client. */ - public static final String SESSION_COOKIE_NAME = "JSESSIONID"; + public static final String SESSION_COOKIE_NAME = + System.getProperty("org.apache.catalina.SESSION_COOKIE_NAME", + "JSESSIONID"); /** * The name of the path parameter used to pass the session identifier * back and forth with the client. */ - public static final String SESSION_PARAMETER_NAME = "jsessionid"; + public static final String SESSION_PARAMETER_NAME = + System.getProperty("org.apache.catalina.SESSION_PARAMETER_NAME", + "jsessionid"); /** diff --git a/java/org/apache/catalina/authenticator/Constants.java b/java/org/apache/catalina/authenticator/Constants.java index 4cf47ba6a..23f3fce36 100644 --- a/java/org/apache/catalina/authenticator/Constants.java +++ b/java/org/apache/catalina/authenticator/Constants.java @@ -40,7 +40,10 @@ public class Constants { public static final String FORM_USERNAME = "j_username"; // Cookie name for single sign on support - public static final String SINGLE_SIGN_ON_COOKIE = "JSESSIONIDSSO"; + public static final String SINGLE_SIGN_ON_COOKIE = + System.getProperty( + "org.apache.catalina.authenticator.Constants.SSO_SESSION_COOKIE_NAME", + "JSESSIONIDSSO"); // --------------------------------------------------------- Request Notes diff --git a/java/org/apache/jasper/Constants.java b/java/org/apache/jasper/Constants.java index 4ce5bcdf8..66de25db3 100644 --- a/java/org/apache/jasper/Constants.java +++ b/java/org/apache/jasper/Constants.java @@ -193,6 +193,8 @@ public class Constants { * The name of the path parameter used to pass the session identifier * back and forth with the client. */ - public static final String SESSION_PARAMETER_NAME = "jsessionid"; + public static final String SESSION_PARAMETER_NAME = + System.getProperty("org.apache.catalina.SESSION_PARAMETER_NAME", + "jsessionid"); } diff --git a/webapps/docs/config/systemprops.xml b/webapps/docs/config/systemprops.xml index a792ae95a..41bb7c54c 100644 --- a/webapps/docs/config/systemprops.xml +++ b/webapps/docs/config/systemprops.xml @@ -252,6 +252,34 @@ +
+ + + + +

An alternative name for the session cookie. Defaults to + JSESSIONID. Note that the Servlet specification requires + this to be JSESSIONID. You should not rely on being able to + change this.

+
+ + +

An alternative name for the session path parameter. Defaults to + jsessionid. Note that the Servlet specification requires + this to be jsessionid. You should not rely on being able to + change this.

+
+ + +

An alternative name for the single sign on session cookie. Defaults to + JSESSIONIDSSO.

+
+ +
+ +
+ +