Only one active session per username
Brought to you by:
akm
Is it possible to force only one active session per
username ?
Suppose a user is logged and another user trys to login
with the same username/password.
Is there a way to force the first one to logout
(invalidate the session) when he makes his next request ?
How ?
Logged In: YES
user_id=815450
While looking inside exUserFolder source for a solution to
my problem, I find out that even though exUserFolder is able
to retrieve the user from cache (validate calls
authenticate) it calls cache_addToCache which removes any
item with the username before adding.
Is this correct ?
Logged In: YES
user_id=815450
I came up with the attached solution, but I would have to
edit exUserFolder.py for each new release, because these
functions must be added to exUserFolder.py to work and
authenticate function have to call check_multiple_session.
I would apreciate any comments.
Check For Multiple Session