On 29/11/2022 13:26, Vojtěch Knyttl wrote:
Hi,
(This is a follow-up question for:
https://bz.apache.org/bugzilla/show_bug.cgi?id=66366 )
Is there a way to implement custom cookie processor in 10.1.?
Yes. As a minimum, you need to implement
org.apache.tomcat.util.http.CookieProcessor.
You have the option of extending CookieProcessorBase (in the same
package) or you could extend the Rfc6265CookieProcessor.
The JAR containing the compiled class (or classes) needs to be placed in
$CATALINA_BASE/lib
We are unfortunately still dependant on the dot-domain cookies and this blocks
us from migrating to current version of Tomcat.
RFC 6265 has been the standard for over a decade now. Which client
requires the (now) invalid domain attribute format?
You should be able to take the code from 9.0.x (
https://github.com/apache/tomcat/blob/9.0.x/java/org/apache/tomcat/util/http/LegacyCookieProcessor.java
) and just use that.
I suggest you place it in your own package.
Mark
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org