tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chema <demablo...@gmail.com>
Subject Re: Sharing session between different webapps under same tomcat
Date Thu, 04 Aug 2011 10:26:02 GMT
OK, I got it

Use context scope to store a HashMap object indexing by JSESSIONID

I guess , this way you have to free manually all per-user session data
from the context when user session is finished ( by example, closing
browser).
Or your context scope datastore could be full of information of all
users which were logged , right ?



2011/8/4 Ron McNulty <rmcnulty@clear.net.nz>:
> Sorry, I think you are missing something :) The session is per user across
> multiple contexts. Portlet apps are typically compiled into separate .war
> files, but can share a single session object at runtime.
>
> Regards
>
> Ron
>
> ----- Original Message ----- From: "Chema" <demablogia@gmail.com>
> To: "Tomcat Users List" <users@tomcat.apache.org>
> Sent: Thursday, August 04, 2011 6:39 PM
> Subject: Re: Sharing session between different webapps under same tomcat
>
>
>>> I think it is possible to share sessions across contexts. Portal
>>> applications need to do this. Try
>>>
>>> http://jee-bpel-soa.blogspot.com/2009/06/session-sharing-in-apache-tomcat.html
>>>
>>
>> But this solution shares information between contexts , not creates an
>> unique shared session per user (session data)
>>
>> am i wrong ?
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

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


Mime
View raw message