Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#1 Only one active session per username

open
nobody
None
5
2004-11-01
2004-11-01
OcTweak
No

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 ?

Discussion

  • OcTweak
    OcTweak
    2004-11-04

    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 ?

     
  • OcTweak
    OcTweak
    2004-11-04

    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.

     
  • OcTweak
    OcTweak
    2004-11-04

    Check For Multiple Session

     
    Attachments