I have a problem, i want to make a script that checks current users online on my site.
I have come as far as log user i mysql database when they arrive to my site, and i can count users who have been logged.
The problem is, how do i delete inactive users, users who have left on such a dynamic way as possible ?
If users X, Y and Z are logged in on my site then user count is 3, but user Y leaves the site to visit another one, then i want to 3-1 dynamicly in database.
This is the way i had in mind, do you have a better, faster way, please tell me.
//nmw