Not for 'how-to' coding questions but PHP theory instead, this forum is here for those of us who wish to learn about design aspects of programming with PHP.
Thanks burrito that's what I was looking for
but I don't see how the disconnection is dealt with ?
how will a certain user be pulled out of the online table ?
sorry, Sami I don't see the link with the subject ?
the user will be yanked off the online table if they close the browser, the XMLHttp request will stop and therefore the timestamp on the table will quit being updated.
it doesn't need a cron.. simply running a removal of "old" users from the "active" list prior to fetching the active list can be far easier to work with. (And supported and supportable)