SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Wizard PHPycho's Avatar
    Join Date
    Dec 2005
    Posts
    1,201
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Members online problem???

    i had made a script of "members online" but its not working properly.
    my logic goes here...
    when the member logs in then the `status` is set to 1. which shows that which user is online. When the user logs out by cliking the logout link then `status` is changed to 0 showing the member offline.
    Problem occurs if the members doesnt clik the 'log out' link..if he simply closes the browser or if the light goes off...........
    how to make the `status` 0 if the he simply closes the brower or goes else....
    how to solve this problem.............PLZ help with the neccessay codes..
    Thank U!

  2. #2
    reads the ********* Crier silver trophybronze trophy longneck's Avatar
    Join Date
    Feb 2004
    Location
    Tampa, FL (US)
    Posts
    9,854
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    this is not a problem mysql will solve for you. what host language are you using?

  3. #3
    SitePoint Wizard PHPycho's Avatar
    Join Date
    Dec 2005
    Posts
    1,201
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    PHP.....
    how does this forum displays xxx members online and yyy guest??
    calling for the help again..

    Thank u

  4. #4
    Internet Business Optimizer KCgame's Avatar
    Join Date
    Mar 2005
    Location
    Singapore
    Posts
    935
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi PHPycho,

    Are you using sessions to keep track of the users? You may want to refer to the this thread for more information.

    Hope it helps


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
  •