You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by ju...@gmx.net on 2001/04/09 10:35:28 UTC

Session handling over different Tomcats

Hello,
has anyone experience in session handling over different tomcats ?
The scenario is as follows:
- one apache
- four tomcats at the apache
- every tomcat contains an application of a third party company with its own
session handling

Problem:
Implementing a global session handling between this four applications
(single login) !

Any Ideas ?

Thanks !


RE: Session handling over different Tomcats

Posted by Alistair Hopkins <al...@berthengron.co.uk>.
how about running a separate login java instance on one of the boxes which
can be called by all servers over RMI to check login?

-----Original Message-----
From: Moin Anjum H. [mailto:moinanjum@yahoo.com]
Sent: Monday, April 09, 2001 10:22 AM
To: tomcat-user@jakarta.apache.org
Subject: Re: Session handling over different Tomcats


Hi,

    Sound a pretty complicated problem. If you don't want to work hard i
have a
not a very good solution. What you can do is Keep the SessionId in the
database.
Apart from id keep track of the time also in the database for session
timeouts.

    Other way i think should be able to communicate with the help of servlet
chaining.
Have a servlet deployed in tomcat. So there will be 4 servlet in 4 tomcats.
This
servlet will check the session table and return either true or false
depending
on the session id present in session table. One servlet will send request to
other four servlet and check if the session id is present in the session
table.
Sound pretty complecated.

HTH
Moin.

juan.alvarez@gmx.net wrote:

> Hello,
> has anyone experience in session handling over different tomcats ?
> The scenario is as follows:
> - one apache
> - four tomcats at the apache
> - every tomcat contains an application of a third party company with its
own
> session handling
>
> Problem:
> Implementing a global session handling between this four applications
> (single login) !
>
> Any Ideas ?
>
> Thanks !



Re: Session handling over different Tomcats

Posted by "Moin Anjum H." <mo...@yahoo.com>.
Hi,

    Sound a pretty complicated problem. If you don't want to work hard i have a
not a very good solution. What you can do is Keep the SessionId in the database.
Apart from id keep track of the time also in the database for session timeouts.

    Other way i think should be able to communicate with the help of servlet
chaining.
Have a servlet deployed in tomcat. So there will be 4 servlet in 4 tomcats. This
servlet will check the session table and return either true or false depending
on the session id present in session table. One servlet will send request to
other four servlet and check if the session id is present in the session table.
Sound pretty complecated.

HTH
Moin.

juan.alvarez@gmx.net wrote:

> Hello,
> has anyone experience in session handling over different tomcats ?
> The scenario is as follows:
> - one apache
> - four tomcats at the apache
> - every tomcat contains an application of a third party company with its own
> session handling
>
> Problem:
> Implementing a global session handling between this four applications
> (single login) !
>
> Any Ideas ?
>
> Thanks !


RE: Session handling over different Tomcats

Posted by Michael Hale <mh...@rolemodelsoft.com>.
I read an article on ibm.com/developerworks by Kyle Brown et al that dealt
with this issue in general.
Basically the idea is that you have a shared database that is keeping track
of the sessions and associated information.

-----Original Message-----
From: juan.alvarez@gmx.net [mailto:juan.alvarez@gmx.net]
Sent: Monday, April 09, 2001 4:35 AM
To: tomcat-user@jakarta.apache.org
Subject: Session handling over different Tomcats


Hello,
has anyone experience in session handling over different tomcats ?
The scenario is as follows:
- one apache
- four tomcats at the apache
- every tomcat contains an application of a third party company with its own
session handling

Problem:
Implementing a global session handling between this four applications
(single login) !

Any Ideas ?

Thanks !