According to RFC 6265, the server should be able to process cookies with the same name, and tomcat has implemented this functionality. So when using %{xxx}c in accesslog, we should alse output the values of all cookies with same name. Currently only the first value is output and the other values are ignored.
If it's confirmed that a fix is needed, I'd be happy to provide pr, and I'd probably splice multiple values with commas, just like this: value1,value2,value3
I agree that this needs to be fixed. Your plan sounds reasonable to me.
(In reply to Mark Thomas from comment #2) > I agree that this needs to be fixed. Your plan sounds reasonable to me. Ok, I'll go ahead and fix this bug today. Thanks Mark! Han
There is also this problem in Extended Access Log Valve.
PR: https://github.com/apache/tomcat/pull/541
Thanks for the report and the PR. Fixed in: - 10.1.x for 10.1.0-M18 onwards - 10.0.x for 10.0.24 onwards - 9.0.x for 9.0.66 onwards - 8.5.x for 8.5.83 onwards