tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <>
Subject Getting the context's session-tracking URI parameter name
Date Tue, 14 Apr 2015 22:09:52 GMT

I need to get the context's session-tracking URI parameter name from
within a Valve, and it looks like this is the right (static) call:


=2E.. but a quick reading of the code in there seems to reveal a
copy/paste error:

Starting on line

    public static String getSessionUriParamName(Context context) {

        String result =3D getConfiguredSessionCookieName(context);

        if (result =3D=3D null) {

        return result;

At first, I would have imagined that there was some breakage in the
trunk due to some refactoring, but it appears that the code is the same
all the way back to Tomcat 7.

I haven't tested it (and will), but it looks like if a non-default
cookie name is used, that same name will be used for the URI parameter
as well.

Is that by mistake or by design?


View raw message