If you have a users table, you could add a field to it that contains the last login datetime. and query that table for datetimes that are less then your session timeout (if one exists). Of coarse, you would have to update that table when a user logs in.
Jason On Tue, 27 Jul 2004 19:55:49 -0400, Jason Giangrande <[EMAIL PROTECTED]> wrote: > Anyone have any suggestions as to the best way to keep track of all > users who are logged in at a given time? I thought of writing them to a > temp text file and them deleting the names from the file when a user > logged out, but I think there has to be a better way. Anyone have any > suggestions? > > -- > Jason Giangrande <[EMAIL PROTECTED]> > http://www.giangrande.org > http://www.dogsiview.com > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php