Forum Moderators: coopster

Message Too Old, No Replies

Prevent Multiple Login

         

fib_81

8:49 pm on May 1, 2005 (gmt 0)

10+ Year Member



Hi Everyone,

Is there a way to prevent multiple logins with the same password and username? Another words, a user can login only if no one else is logged in.

Thanks,
Fib_81

mcibor

10:06 pm on May 1, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If you want to disallow such logging in you need to set in db whether someone is logged on or not. However problems may come if user doesn't logout and just closes the window, or the program (IE, mozilla) breaks down.

Multiple logins is therefore disallowed in another way. Let's have two people: A and B.
1. A logged in as B and after sometime
2. B logged in as B. Then:
3. A losses his login authentification

Why such approach? It's because people sometimes wander to colleagues computer and to show something log there in. So it's not really two people, just one at two computers.

I use that approach and never got any complait yet (2 years).
Hope this helps you either solve the problem (but what about breakdowns?) or set you on the different approach.
Michal Cibor