Ok, this is one I have been struggling with. How do I keep track of logged in members who are online on my website.
Lets take this forum for example. It knows who is online. How does it work and what would I need to make this happen on my site.
Thanks!
Who is Online?
Moderator: General Moderators
Re: Who is Online?
Every time someone views a page there is a log of the time made against their user in the database. So me viewing this page would mean the timestamp for Onion2k will have been updated to 19:59. When the forum wants to write a list of who is online at the moment it queries the database to find anyone who has viewed a page in the last 5 minutes.
EDIT: Also, your signature is massive. Does it really need all that?
EDIT: Also, your signature is massive. Does it really need all that?
Re: Who is Online?
Haha yeah I suppose it is long 
I will change it
Ok so it is a query based on time
Thanks for your help.
I will change it
Ok so it is a query based on time
Thanks for your help.