Previous Topic: Tomcat Tuning Parameters in the server.conf File

Next Topic: Parsing the Equal Sign in a Cookie

Resolve Differences in Cookie Specification for Different Version of Tomcat

Tomcat version 5.5 changed its behavior for handling cookies. Tomcat version 5.5 by default puts quotes around a cookie. Previous versions of Tomcat did not put quotes around a cookie. Tomcat sends the cookie back to the browser. SPS r12.0 SP 3 uses Tomcat version 5.5. If your deployment requires visiting an earlier version of SPS, the cookie cannot be decoded. The earlier version of SPS is using Tomcat version 5.0, which does not put quotes around the cookie.

To ensure that the cookie behavior is compatible between different versions of SPS, set the addquotestobrowsercookie parameter in the server.conf file to "no". The Tomcat org.apache.catalina.STRICT_SERVLET_COMPLIANCE variable is set to "TRUE". Tomcat parses the cookie according to the servlet specification, which means that no quotes are added. When the addquotestobrowsercookie parameter is set to "yes", the SPS enables the default Tomcat version 5.5 cookie behavior.