-
limit login per user (2 messages)
- Posted by: shay harel
- Posted on: May 22 2008 05:00 EDT
HI All i want to limit the number of login pre user if userA will connect to the web site from location 1 and he try to connect again (with the same user name) from location 2 he will get message that he already connected to the web site and the old connection will kill (the same as the console screen as web sphere ) any idea thanksThreaded Messages (2)
- Re: limit login per user by Daniel Wamara on May 22 2008 07:02 EDT
- Re: limit login per user by Jyothish John on May 22 2008 13:11 EDT
-
Re: limit login per user[ Go to top ]
- Posted by: Daniel Wamara
- Posted on: May 22 2008 07:02 EDT
- in response to shay harel
Well, save his login connection in a database tables (user, connection_time, ip_address) and everytime a user tries to connect, check this table first to see if he is in. Well, that was just a quick thought. D. -
Re: limit login per user[ Go to top ]
- Posted by: Jyothish John
- Posted on: May 22 2008 13:11 EDT
- in response to Daniel Wamara
Well, save his login connection in a database tables (user, connection_time, ip_address) and everytime a user tries to connect, check this table first to see if he is in. Well, that was just a quick thought.
After sucessfull authentication, add the userID/Key to a Vector or a List, which is of Application scope or Static. (Vector is synchronized). And upon every authentication you may check if the userId is existing in the Vector, if existing, you may invalidate the session rightaway, and force the re-login..
D.