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?
Thanks, Thoiba Mark Thomas <ma...@apache.org> 18/05/2010 12:37 Please respond to "Tomcat Users List" <users@tomcat.apache.org> To Tomcat Users List <users@tomcat.apache.org> cc Subject Re: Tomcat 6.0.18 unsupported character in cookie On 18/05/2010 12:24, thoiba.thou...@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 sign > 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. Mark --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org