Java · Programming · Server

Tip : Parsing cookies with “=” in Tomcat

Tomcat server does not properly parse unescaped cookies with equal (=) character inside them. It truncates the cookie after the first “=”. To solve this issue, add the following configuration setting in the conf/catalina.properties file. org.apache.tomcat.util.http.ServerCookie.ALLOW_EQUALS_IN_VALUE = true This works in version Tomcat 5.5+. Official Tomcat Configuration Information