After some wondering, I decided to see if changing domain name would
help, I mean going away from having the danish character æ in the
domain, and it did. And I actually did not have to use cookie rewrite or
domain.
So this works too using mod proxy..
Nino Saturnino Martinez Vazquez Wael wrote:
Replying inline... And thanks for your mail.
Krist van Besien wrote:
On Tue, May 27, 2008 at 11:25 AM, Nino Saturnino Martinez Vazquez Wael
<[EMAIL PROTECTED]> 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?
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?
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 exactly.
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: [EMAIL PROTECTED]
" from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]