tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Milt Epstein <>
Subject Re: Session cookie not recognized in www. subdomain alias
Date Sun, 01 Dec 2002 16:55:13 GMT
On Sun, 1 Dec 2002, Garrett Smith wrote:

> Hello Tomcat Users,
> I am having a problem with access to the www. alias of my site
> having a different session cookie.
> What is the proper way to make tomcat use "" for my
> session cookie?
> To see what I mean, go to and then to
> . You can see the obvious change by the
> colors (which are session-based).
> Proof:Javascript:alert(document.cookie)
> You'll see a different JSESSIONID cookie for www. alias "subdomain."
> I ask again: What is the proper way to make tomcat use
> "" for my session cookie?
[ ... ]

Not an absolute definitive answer, but I strongly suspect you can't
(not without modifying Tomcat sources, that is, which is probably not
something you want to be doing).

I'd think a better solution anyway would be to modify your web server
frontend so requests using "" are internally changed
to using "".  Don't know what web server you're
using, but I'd think there is a way to do that with most of them.
(I'm sure you could do it with Apache's mod_rewrite, for example, and
there might even be a simpler way.)

Milt Epstein
Research Programmer
Integration and Software Engineering (ISE)
Campus Information Technologies and Educational Services (CITES)
University of Illinois at Urbana-Champaign (UIUC)

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message