SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Apr 2014
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How to check if the account is logged in to another computer can not log in.

    Hi All, I have a issues that if the account is logged in to another computer can not log in.
    please tell me how to solve this issues.
    Thanks you so much.

  2. #2
    Programming Team silver trophybronze trophy
    Mittineague's Avatar
    Join Date
    Jul 2005
    Location
    West Springfield, Massachusetts
    Posts
    17,290
    Mentioned
    198 Post(s)
    Tagged
    3 Thread(s)
    Hi tpnguyen91, welcome to the forums,

    What do you mean by "logged in to another computer" ??
    Don't accounts login from a computer?

  3. #3
    SitePoint Wizard siteguru's Avatar
    Join Date
    Oct 2002
    Location
    Scotland
    Posts
    3,631
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Are you asking ... "How can I check if an account is logged in, and if so, stop someone else logging in to the same account from another computer?"

    If that is what you are asking, use a database to record the logged in status, and when processing the login check the logged in status to see if that account is already logged in.

    Note: You'd need to put in some garbage collection routine to logout accounts that have been idle for a defined period of time.
    Ian Anderson
    www.siteguru.co.uk


Tags for this Thread

Bookmarks

Posting Permissions

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