Hi guys,
When trying to set a cookie in
Tomcat 3.2.4 I see the error below and the cookie is not set. This is happening both in a
JSP or
servlet.
ERROR BEGINS
'$' not allowed as first char of Cookie name
Cookie Header: $Version=1;
ERROR ENDS
Of course this error message is written on the live console. I'm bewildered because I'm not sure why Tomcat is adding the dollar sign. Have you ever come across such a problem? I gather it's to do with version 0 and 1 of the cookies. Explorer 6 seems to be happy but Firefox and Opera won't have it. I'm also making sure that I add the cookie to the response before commiting the response.
Please don't ask why I'm not using the latest version of Tomcat, I'm at work trying to fix an old app. No one has ever bothered to upgrade it
Thank you,
Ernest
[ August 05, 2005: Message edited by: ernest fakudze ]