thoiba.thou...@ft.com wrote:
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?

Have a look here :
http://tomcat.apache.org/tomcat-6.0-doc/api/org/apache/tomcat/util/http/ServerCookie.html

If you set a header via .setHeader(), you set a name and a value, as strings. You can set whatever you want in this way, and there is no checking of what you set. Which is exactly why you can set a non-specs-compliant (in other words invalid) cookie in this way.



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to