Matt, The most comprehensive example of this is provided by PhpBB (www.phpbb.com).
This application pretty much follows the logic you've set out. HTH, Michael Egan -----Original Message----- From: Matt Palermo [mailto:[EMAIL PROTECTED] Sent: 02 July 2004 06:13 To: [EMAIL PROTECTED] Subject: Re: [PHP] Online Users[Scanned] Is it possible to make a table of all logged in users session ids and then check to see if the session still exists every couple minutes? So every minute or two, it would go through the table and for each record it would get the session id, then check that session id to see if it's still in existance. Is this possible to do? Thanks, Matt http://sweetphp.com "Zareef Ahmed" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > If you are using a database on your server you can > do this as follows: > 1. Make a table named > active_users(userid,last_access); > 2. Record every visit of a user to any page. > 3. you can delete the entries from this table on a > condition like :: > delete from active_users where last_access is less > than (currenttime-MAX_EXPIRE_TIME) > 4. Display row count of active_users to visitors. > > This is just a hint. Some knowldge of php/any database > assumed , > > Revert back with any comment or problem. > > zareef ahmed > > > --- Curt Zirzow <[EMAIL PROTECTED]> wrote: > > * Thus wrote Matt Palermo: > > > they click the logout button). Basically I want > > to be able to keep a list > > > of all currently active users. So if they close > > out their browser, it will > > > remove their name from the list (within a > > reasonable time frame). I'm > > > ===== > Zareef Ahmed :: A PHP Developer in Delhi(India). > Homepage :: http://www.zasaifi.com > > > > > __________________________________ > Do you Yahoo!? > New and Improved Yahoo! Mail - 100MB free storage! > http://promotions.yahoo.com/new_mail -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php The information contained in this email (and in any attachments sent with it) is confidential. It is intended for the addressee only. Access to this email by anyone else is unintended and unauthorized. If you are not the original addressee, 3tc asks you to please maintain confidentiality. If you have received this email in error please notify 3tc immediately by replying to it, then destroy any copies and delete it from your computer system. Any use, dissemination, forwarding, printing or copying of this email by anyone except the addressee in the normal course of his/her business, is strictly prohibited. 3tc owns the copyright in this email and any document created by us and assert the right to be identified as the author of it. Copyright has not been transferred to the addressee. We protect our systems with Sophos Anti-virus - www.sophos.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php