struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Manomohan K Kalathil" <manmoha...@mindtree.com>
Subject RE: [STRUTS] Detecting multiple users with the same login
Date Mon, 23 Sep 2002 13:16:10 GMT
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:tpp@viant.com]
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:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message