You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by st...@apache.org on 2004/01/03 16:24:04 UTC
cvs commit: cocoon-2.1/src/webapp/WEB-INF web.xml
stefano 2004/01/03 07:24:03
Modified: src/webapp/WEB-INF web.xml
Log:
Found a way to tell Jetty to modify the root path of the cookie so that I can mount my webapp in my web server (via ProxyPass) from another location than the one used by the application server (which is great since I can now use one single JVM now) Still not the perfect solution, but something that might be useful for others so I'm putting it here.
Revision Changes Path
1.10 +14 -0 cocoon-2.1/src/webapp/WEB-INF/web.xml
Index: web.xml
===================================================================
RCS file: /home/cvs/cocoon-2.1/src/webapp/WEB-INF/web.xml,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- web.xml 7 Nov 2003 10:09:06 -0000 1.9
+++ web.xml 3 Jan 2004 15:24:03 -0000 1.10
@@ -10,6 +10,20 @@
<web-app>
+ <!-- Context Configuration ========================================== -->
+
+ <!--+
+ | Set a context property useful to allow you to ProxyPass your
+ | web application mounted to a different URI without loosing the
+ | ability to do cookie-based sessions.
+ | WARNING: this is Jetty specific!
+ +-->
+ <!--context-param>
+ <param-name>org.mortbay.jetty.servlet.SessionPath</param-name>
+ <param-value>/some/path/to/your/webapp</param-value>
+ <description>An override of the session cookie path</description>
+ </context-param-->
+
<!-- Servlet Configuration ========================================== -->
<servlet>