I'm running a Java application on Tomcat 6.0.24 that needs to be able to dynamically change the PATH for the JSESSIONID cookie at runtime. I spent a long time trying to manipulate the cookies in a filter, before deciding that the simplest approach might be to extend org.apache.catalina.core.StandardContext and override the getEncodedPath function instead.I'm running a Java application on Tomcat 6.0.24