tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: How to access session between multiple contexts?
Date Thu, 28 Apr 2011 15:00:48 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Chuck,

On 4/27/2011 8:58 AM, Caldarale, Charles R wrote:
>> From: Gregor Schneider [mailto:rc46fi@googlemail.com] 
>> Subject: How to access session between multiple contexts?
> 
>> I have enabled the SingleSignOnValve (although authorization
>> is handled via some Spring-stuff) but I thought it is needed
>> to share the session among different contexts.
> 
> No, the SSO valve does not cause sessions to be shared across contexts - that would be
a spec violation.  All it does is replicate authentication/authorization information across
the associated contexts of a given <Host>.
> 
> I would think you could use a listener in each context that could propagate session changes
across webapps via some data structures maintained by a shared class.  Don't know if such
exists already, or if you'd have to create it.

Gregor could cheat and write a session-data-fetch servlet in the "main"
webapp and call it from the ancillary webapp. Just use URL-based session
ids when you call and it should work.

Gregor, what are your options for simply adding your code to the CMS
webapp and not bothering with the added complexity of a second webapp?

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

iEYEARECAAYFAk25gSAACgkQ9CaO5/Lv0PA5eQCgpms5Uohaj9gAvN6UH+z4XRfL
6UgAoICuqOqbfOrZ9MJFCNC1A4otla5i
=9A/9
-----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