Replying inline... And thanks for your mail. Krist van Besien wrote:
I did check with web developer, and firecookie. However as it turns out after doing a little deeper check it became apparent that it's probably the domain name that's messing with stuff. So the cookies are set just not for the current domain, but suffixed with forum and beta(like you write). Problem is that my domain contains an æ it's something like this : domæne.dk however there are trouble with this so forexample firefox recognises it as domæne.dk but IE6 does xn--domne-e6a.dk. I've setup Apache to use the xn-domne-e6a.dk, can I have two domains, so that I also use the one with æ, it's just a matter of adding the other name as an server alias right, I guess Apache http supports æ ø å etc?On Tue, May 27, 2008 at 11:25 AM, Nino Saturnino Martinez Vazquez Wael <nino.martinez@xxxxxxxxx> wrote:Hi I have two applications running in a tomcat instance, I use apaches mod proxy to forward to them accordingly. However I have trouble getting a share cookie to be visible in each application. Since cookies need to be on the same path and domain. Currently no cookies are going out to the browser from apache2 http.Are you sure no cookies are going out? Have you looked at your http traffic using something like LiveHTTPHeaders or firebug?
Normally apache just forwards cookies produced by your app to the client. you can ask apache to change the cookiedomain and the path,
I've tried todo this: (beta)ProxyPassReverseCookiePath / /tomcatcontex/
ProxyPassReverseCookieDomain /tomcatcontex beta.domæne.dk (forum)ProxyPassReverseCookiePath /jforum-2.1.8 / ProxyPassReverseCookieDomain /jforum-2.1.8 beta.domæne.dk
But obviously it does not work, both cookie domains are set to: beta.xn--trningslog-e6a.dk (the tomcat cookie) forum.xn--trningslog-e6a.dk (the forum cookie) It looks like the domain path are being used, is only /.
You have configured two virtual hosts, beta.domain.dk and forum.domain.dk, and want to share cookies between them, is that correct?
Yes excactly.
In this case you must make sure that cookiedomain is domain.dk. If you set cookidomain to beta.domain.dk the cookie will only be sent by the browser on requests to beta.domain.dk, and not on requests to forum.domain.dk.
I am aware of this, but thanks for reminding.
Krist
-- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx