News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

duplicate login kick/auto logout

Started by profile, January 30, 2005, 08:41:44 PM

Previous topic - Next topic

profile

Is there something available to restrict duplicate login similiar to yahoo messenger?  When it's already logged in, either kick both off or the first user off?

Pause

Quote from: profile on January 30, 2005, 08:41:44 PM
Is there something available to restrict duplicate login similiar to yahoo messenger?  When it's already logged in, either kick both off or the first user off?
AFAIK, it should already show them as logged in if they go to the page again in another window...
"You and me, inside that box, now." - The Doctor

Bite Fusion
Fusion Web Network
VG Fusion
Wrestling Fusion + Wrestling Fusion Forums

profile

Hopefully this will clear it up a little.

Here's an example using smflogin1 as the username:
smfuser1 login at  9am local board time
another person uses smfuser1 to login at 10am local board time

possible end result:
the smfuser1 login at 9am will get kicked off the board -or-
the smfuser1 login at 10am will get a message saying the account is in use
-or- other combination

[Unknown]

You're basically asking to have it such that if someone logs into an account, no one else can log into it, yes?

This could be done, but by nature it could cause people login troubles....

-[Unknown]

profile

how hard would it be to implement this or where can I go to learn more about something similiar to this?  It would be nice to use this to prevent sharing of accounts, unless there's another way to do it.  yahoo messenger has a similiar function.  TIA

[Unknown]

Well, the cleanest way would be to do it based on the session id; make sure there's only one session id logged into one account at a time.  This would mean caching the current session id in the members table, and then checking if that session id exists (if it's in the log_online table.)

-[Unknown]

Advertisement: