You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Benny Lootens <be...@verzekeringen.be> on 2002/09/05 17:07:00 UTC
manually set cookie path for JSESSIONID
Hi,
I really have a problem here ... :-(
Two different URLS, www.mydomain-a.com and www.mydomain-b.com point to
the same webapplication, the same tomcat-context.
Everything works fine, even if I start working with cookies (I set a
different cookiepath for each URL, eg. /cookiepatha for mydomain-a.com
and /cookiepathb for mydomain-b.com), but I have still 1 problem:
tomcat 3.2.4 always set the cookie path of the JSESSIONID to the name of
the web application context patch! So, this would be:
/cookiepatha for mydomain-a.com and
/cookiepatha for mydomain-b.com, but this one should be /cookiepathb iso
/cookiepatha. Can i set the latter manually for the cookievariable
JSESSIONID?
Any help would really be appreciated.
regards,
benny lootens
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: manually set cookie path for JSESSIONID
Posted by Milt Epstein <me...@uiuc.edu>.
On 6 Sep 2002, Benny Lootens wrote:
> Hi Milt,
>
> I understand it now, and I'm just gonna make different contexts for
> different hostnames, eg www.domaina.com would refer to context
> /domaina and www.domainb.com would refer to context /domainb.
OK, that should work (although I don't really know what you're trying
to do :-). But you can probably get by with using the same context as
well. Remember, cookies have a domain as well as a path, and the
browser uses both those pieces of information when deciding whether to
send a cookie with a particular URL. So, since you have different
domains, that should keep the cookies separate.
Milt Epstein
Research Programmer
Systems and Technology Services (STS)
Campus Information Technologies and Educational Services (CITES)
University of Illinois at Urbana-Champaign (UIUC)
mepstein@uiuc.edu
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: manually set cookie path for JSESSIONID
Posted by Benny Lootens <be...@verzekeringen.be>.
Hi Milt,
I understand it now, and I'm just gonna make different contexts for
different hostnames, eg www.domaina.com would refer to context /domaina
and www.domainb.com would refer to context /domainb.
Thank you for the quick answer !
greetings,
benny lootens
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: manually set cookie path for JSESSIONID
Posted by Milt Epstein <me...@uiuc.edu>.
On 5 Sep 2002, Benny Lootens wrote:
> Hi,
>
> I really have a problem here ... :-(
>
> Two different URLS, www.mydomain-a.com and www.mydomain-b.com point
> to the same webapplication, the same tomcat-context.
>
> Everything works fine, even if I start working with cookies (I set a
> different cookiepath for each URL, eg. /cookiepatha for
> mydomain-a.com and /cookiepathb for mydomain-b.com), but I have
What do you mean by this, that is, how/where do you set the
cookiepath?
> still 1 problem:
>
> tomcat 3.2.4 always set the cookie path of the JSESSIONID to the
> name of the web application context patch! So, this would be:
Yes, that is how it works, session cookies are context specific (and
that's captured in the path setting).
> /cookiepatha for mydomain-a.com and
> /cookiepatha for mydomain-b.com, but this one should be /cookiepathb
> iso /cookiepatha. Can i set the latter manually for the
> cookievariable JSESSIONID?
[ ... ]
Don't think so -- at least, not without mucking with the Tomcat
source, and I think if you did that to get the above you'd be going
against the spec.
There are a couple of things I don't understand, however. First, why
do you have the two domains pointing to the same webapplication.
Second, why do you need the different cookiepath's?
Maybe if you elaborate on why you're doing these things, and/or what
you're trying to do overall, we can figure out a solution.
Milt Epstein
Research Programmer
Systems and Technology Services (STS)
Campus Information Technologies and Educational Services (CITES)
University of Illinois at Urbana-Champaign (UIUC)
mepstein@uiuc.edu
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>