Thread: Users Online?

    #1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2000
    Posts
    14
    Rep Power
    0
    How would I go about implementing a feature that lists the number of users that are currently visiting my site (registered users with user info stored in a cookie)?
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2000
    Posts
    79
    Rep Power
    15
    when a user logs in simply make a field called online switch to 'yes' and then back to 'no' when they leave

    or...

    make a new table where all logged in ppl are inserted, when someone logs out, delete them from the table.
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2000
    Location
    Seattle, WA
    Posts
    1
    Rep Power
    0
    That's fine if you can get your users to logout somehow, but what if they're just navagating away from the site or closing the window altogether? Then it's not so easy to keep track of them.
  6. #4
  7. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2000
    Posts
    14
    Rep Power
    0
    Same question.
  8. #5
  9. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2000
    Posts
    16
    Rep Power
    0
    Make a timer if the user arnt logging out!
    set it to 30 mins or so if the user arnt moving between any pages. But that DOES require a bit coding and a few extra files!

Similar Threads

  1. Show users online
    By edkeyte in forum Perl Programming
    Replies: 3
    Last Post: February 15th, 2004, 10:08 PM
  2. Concerning users online
    By Onthrax in forum PHP Development
    Replies: 2
    Last Post: January 21st, 2004, 05:34 AM
  3. Display users online help
    By doctacrazy in forum PHP Development
    Replies: 7
    Last Post: January 18th, 2004, 03:24 PM
  4. Users online??
    By aero in forum PHP Development
    Replies: 3
    Last Post: December 10th, 2003, 04:02 PM
  5. Users Online
    By MasterChief in forum PHP Development
    Replies: 7
    Last Post: November 17th, 2003, 07:10 PM

IMN logo majestic logo threadwatch logo seochat tools logo