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

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s