Re: [STRUTS] Detecting multiple users with the same login

2003-01-01 Thread Andy Noble

- Original Message -
From: "Galbreath, Mark" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Monday, September 23, 2002 1:35 PM
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.
>
> Mark
>
> -Original Message-
> From: kiuma [mailto:[EMAIL PROTECTED]]
> Sent: Monday, September 23, 2002 8:18 AM
>
> how can I detect multiple logged users in my system at the same time but
> from differen ip?
>
> --
> 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]>




RE: [STRUTS] Detecting multiple users with the same login

2002-09-23 Thread Manomohan K Kalathil

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]>




RE: [STRUTS] Detecting multiple users with the same login

2002-09-23 Thread Tero P Paananen

> 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:   
For additional commands, e-mail: 




Re: [STRUTS] Detecting multiple users with the same login

2002-09-23 Thread kiuma

So, if i've understood, I have to create a login runnable 
servlet(1) with a synchronized 
HashMap and check it every few times?


Galbreath, Mark wrote:

>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.
>
>Mark
>
>-Original Message-
>From: kiuma [mailto:[EMAIL PROTECTED]]
>Sent: Monday, September 23, 2002 8:18 AM
>
>how can I detect multiple logged users in my system at the same time but 
>from differen ip?
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 
>
>.
>



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: [STRUTS] Detecting multiple users with the same login

2002-09-23 Thread Galbreath, Mark

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.

Mark

-Original Message-
From: kiuma [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 23, 2002 8:18 AM

how can I detect multiple logged users in my system at the same time but 
from differen ip?

--
To unsubscribe, e-mail:   
For additional commands, e-mail: