Bug 51326

Summary: [Patch] allow session_path and session_cookie as extension attribute
Product: Tomcat Connectors Reporter: Eiji Takahashi <mashmk02>
Component: CommonAssignee: Tomcat Developers Mailing List <dev>
Severity: enhancement    
Priority: P2    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Attachments: allow session_cookie and session_path as extension

Description Eiji Takahashi 2011-06-06 05:53:40 UTC
Created attachment 27115 [details]
allow session_cookie and session_path as extension

session_path and session_cookie are configurable only in the load balancer section of workers.properties.

It is not convenient because the cookie name can configure per web-application on the Tomcat.

So I made the patch that allows session_path and session_cookie as extension attribute.
I tested on Linux(CentOS5.4) and WindowsXP.

The semicolon is used as separator in the rule extension syntax, but in this patch, it is not used as separator if there is a semicolon behind "session_path=".

For example, the following config is allowed:
In this case, ";sessionid1" is used as path parameter name.

Comment 1 Rainer Jung 2011-10-23 20:12:51 UTC
Thank you for your contribution.

I changed it slightly (putting the default initiaölization into common/jk_util.c) and had to adopt it to other rule extension changes I made earlier today.

It would be nice if your could test r1187963.

Will be part of 1.2.33.