> ## Content Index
> Fetch the complete content index at: https://helpmonks.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# Tomcat truncating cookies with = values
- URL: https://helpmonks.com/blog/tomcat-truncating-cookies-with-values/
- Published: 2013-05-02T00:00:00.000Z
- Updated: 2026-04-04T01:57:36.000Z
- Description: Starting with Tomcat 6.0.18 and in Tomcat 7.x any cookie containing a “=” will be truncated. Where you would expect your cookie to hold all values, e.g. “val
- Author: Nitai
- Tags: email marketing

Starting with Tomcat 6.0.18 and in Tomcat 7.x any cookie containing a “=” will be truncated. Where you would expect your cookie to hold all values, e.g. “value1=myname&value2=password” you will only be able to retrieve the “value1=”.

This is because Tomcat now adheres to the cookie spec more tightly than previous versions. If you are in control of the cookie you might be able to change it and work around this. If not, then you can can change the settings within the catalina.properties file by appending the following two settings:

\[code\]org.apache.tomcat.util.http.ServerCookie.ALLOW\_EQUALS\_IN\_VALUE=true  
org.apache.tomcat.util.http.ServerCookie.ALLOW\_HTTP\_SEPARATORS\_IN\_V0=true\[/code\]