You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Graham Leggett <mi...@sharp.fm> on 2001/09/25 17:03:31 UTC
Remove "path" from cookies
Hi all,
While creating a session in a servlet running under Tomcat v4.0, it is
trying to set cookies like so:
Set-Cookie: tester=1;Path=/
Set-Cookie: JSESSIONID=E820B50321B9E4B4D3121239A366B204;Path=/blah
The problem is the /blah part - I have a reverse proxy which is mapping
fake servlet URLs to different URLs on the frontend, but the session
remains broken because of the /blah scope being applied by Tomcat.
Is there a way of telling Tomcat to remove the path completely from the
cookie setting?
I have configured the following to try and make sessions global:
<Valve className="org.apache.catalina.authenticator.SingleSignOn"
debug="0"/>
This was effective in removing the /blah from the first cookie setting,
but the second session cookie setting remains broken.
Is there a way to fix this? (ie remove the /blah and replace it with /)
Regards,
Graham
--
-----------------------------------------
minfrin@sharp.fm "There's a moon
over Bourbon Street
tonight..."