tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject Re: Tomcat 6.0.18 unsupported character in cookie
Date Tue, 18 May 2010 12:53:48 GMT
Hi Mark,
Thanks again. Your suggestion sounds like a way forward to solve our 
problem. I just tried it and it works. Our cookie containing non-spec 
complaint cookie values are being created without any double quotes. 
Could you please also let me know the difference between 
response.setHeader("Set-Cookie", "name=value") and 
response.addCookie(cookie)? Are there any disadvantage of using 
response.setHeader() to set cookies?


Mark Thomas <> 
18/05/2010 12:37
Please respond to
"Tomcat Users List" <>

Tomcat Users List <>

Re: Tomcat 6.0.18 unsupported character in cookie

On 18/05/2010 12:24, THOIBA.THOUDAM@FT.COM wrote:
> Hi Mark,
> Thanks for your response. I believe you are referring to the change log 
> description "Provide an option to allow the equals character in unquoted 

> cookie values.". By upgrading to tomcat 6.0.26 and setting this system 
> property, our application can read unquoted cookie values with equals 
> created by other application. However, when our tomcat creates the same 
> cookie it double quotes the cookie value. I would like tomcat to stop 
> double quoting our cookie value containing equals sign as other third 
> party applications reading our cookie may not like it.

You'd have to add the cookie header manually in your application if you
want to write a non-spec compliant cookie. Tomcat always write spec
compliant cookies.


To unsubscribe, e-mail:
For additional commands, e-mail:

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message