No. This will not work in a clustered environment. However, what Mark
suggested is the simplest approach and should hold good in a normal ( not
clustered) webapp. If you want to achieve this is a clustered environment,
you will have to maintain a table, possibly in a Database, of user-ids and
possibly session-ids, login time. Before you autenticate the user as a part
of the login, you should check for the existance of the user-id in the table
and then proceed.
Ofcourse, this introduces other complexities like cleaning up your table on
shutdown, cleaning up expired session-ids from the table etc
Mano
-----Original Message-----
From: Tero P Paananen [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 23, 2002 6:39 PM
To: Struts Users Mailing List
Subject: RE: [STRUTS] Detecting multiple users with the same login
> Store their login names and IPs in a context-scope hashtable
> upon login and remove them when their session expires. I'm
> not sure if Tomcat/JBoss has some kind of tracking mechanism
> that provides concurrent session info, but the documentation
> should tell you this.
Will this work, if the application is running in a cluster?
-TPP
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>