Jump to content

Display The Names From Online Users


garevn

Recommended Posts

The better solution is to save the "last online" time, which you update every time the user requests a new page from the server. Then just calculate if the time of the last update is older than the timeout, which you decide. If it is, then they're offline, if not then they're not.

All you need is one extra field in the existing users table, nothing more nothing less. ;)

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.