Jump to content

Help with 'whos online'


dean7

Recommended Posts

If you've got a mysql db, you can have a datetimestamp field in a user table. Every time a page is refreshed, the user refreshes their row in the mysql db. Then, they do a select on that table, looking for all the folks who have refreshed in the last 5 to 30 minutes and count them as who's online. It won't be 100% correct, but it will be roughly correct.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.