tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: Tomcat sessions issue?
Date Thu, 19 Aug 2010 03:50:52 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Robin,

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:

host=myserver.com, 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
administration.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxsqhwACgkQ9CaO5/Lv0PAW0ACgrGfZbBNEqz03Hcmwj5BDwl1P
gpoAn1Ott+IIPuq5PICE6MtgkzhVATjE
=xtu3
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message