On 07 Sep 2005, at 04:49, Jason Johnston wrote:

Yves Vindevogel wrote:
For reasons of sessions, I have to set the path of the cookies to "/"
You need to set the cookie path to "/" within your servlet
container. Otherwise, for a Cocoon mounted on /cocoon the cookie
path will be /cocoon, and the cookie will be ignored when it is
proxied from a URL without the /cocoon. Set the cookie path to / and
your problem will go away.
How can I do this in Tomcat 5 or is this in Cocoon ?

Yes, found most of the stuff below too. But no answers that help me further in the long end.

I actually think it _should_ be the job of whatever's doing the proxying (Apache?) to translate the cookie paths, that way cookies could work through the proxy and Tomcat could still keep cookies contained to the servlet path.

Searching around a bit, it looks like if Apache 2.1 has the ProxyPassReverseCookiePath directive for this purpose (http://httpd.apache.org/docs/2.1/mod/mod_proxy.html#proxypassreversecookiepath) but unfortunately 2.1 is still alpha so nobody's probably using it yet. The docs for 2.0 don't have this directive unfortunately.

Yes, indeed, 2.1, but it's alpha, so out of the question. But maybe it has to be set in Apache and not in Tomcat.

Searching a bit more it looks like Tomcat as of 5.5.4 has the ability to set the path:
"Add the ability to force session cookies to be set to the root path
Yes, indeed. Is a bugfix in 5.5. But I'm running 5.0. If I need to upgrade to get it working no problem, but I would first like to try with my current setup.

'/'. This should not be used on large servers, otherwise tons of
cookies may be sent. (remm)"
(from http://jakarta.apache.org/tomcat/tomcat-5.5-doc/changelog.html)
...but I didn't find how exactly to invoke that feature.

No, indeed, that is were the statement ended. If somebody is running 5.5, he/she might run a search in the config files on the word proxy and find something.
Could somebody post the tag then ?

Sorry this probably isn't very much of a help so far; I'll keep searching around as I have time. I'm personally interested in the answer as I'm going to be using a similar setup soon.

For the moment, I'm using POST all the time. Everything that needs to be passed in in hidden textboxes. This works, but it seems not to be optimal.

--Jason

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Met vriendelijke groeten,
Bien à vous,
Kind regards,

Yves Vindevogel
Implements

TIFF image



Mail: [EMAIL PROTECTED] - Mobile: +32 (478) 80 82 91

Kempische Steenweg 206 - 3500 Hasselt - Tel-Fax: +32 (11) 43 55 76

Web: http://www.implements.be
<x-tad-smaller>
First they ignore you. Then they laugh at you. Then they fight you. Then you win.
Mahatma Ghandi.</x-tad-smaller>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to