tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <>
Subject Re: Tomcat sessions issue?
Date Thu, 19 Aug 2010 03:50:52 GMT
Hash: SHA1


On 8/18/2010 5:57 PM, Robin Diederen wrote:
> That's interesting to say the least.

I agree with André's assessment: you have a cookie collision. See below
for hints for removing the conflict.

> Without cookies enabled, I can't login to either of both applications.

You probably haven't been properly encoding your URLs.

> So I "designed" another test: using two browsers I visited both
> applications. And guess what: it works like a charm! So I guess you
> are right on the cookies :-).
> The only one thing I do not understand: I've done this a few times
> before and I never ran into these issues. The only difference is that
> I'm using a newer version of LifeRay for the first time, but AFAIK
> the other LifeRay version I used uses JSESSION too..

The difference is probably that in other installations you haven't
deployed both applications to the root ("/") context path. You never did
tell us how you deployed the two, so I suspect that both webapps are
deployed as ROOT. In that case, you get cookies from both webapps that
look like this:, path=/, name=JSESSIONID, value=12345...

There's no difference between the identifying portions of the cookie
(host, path, and name) so one overwrites the other.

Simply deploying LifeRay to, say, /liferay and Alfresco to, say,
/alfresco, you should be good to go.

Note that if you deploy them in this way, you ought to be able to deploy
them into a single Tomcat instance and save yourself some RAM and some

- -chris
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla -


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

View raw message