Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 2003
    Posts
    454

    Unanswered: only one user can be logged in at the same time using the same account?

    I need to create a LOGIN system in which more than one user can not be logged in at the same time using the same account (same username and same password). How can I do it? Thanks.

  2. #2
    Join Date
    Feb 2005
    Location
    London
    Posts
    19
    You can create table to see which users are currently logged-in or have additional field in User table called logged-in (type : yes/no)

    When some user log in check whether is that already logged in or not (and ofcourse, user name and password is correct or not)

    If already logged in then you can deny log in

    When user log out change the logged-in status in database to false

    but beware, there no full-proof cure for user leaving website with out signing... You can write some code in Global.Asa on Session_OnEnd event which will change the logged-in status in database to false. But that is also not that much reliable...

    Hope this will help

    ps: go to www.w3schools.com for more info on Global.Asa

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •