Any ideas?
OK, I did it as when page (user is logged in) starts it adding record to DB, so I now know that specific user is online, but then is a problem: How would I know that the user left?
Well again I solve this problem (with using Java timer) by deleting the record from data base after 1.5min….
But I gave mi 2 more problems:
1. If the user is inactive I would think that he left
2. If the user left the page before 1.5min, the DB record will not be deleted
3. User status is absolutely unrealistic
So there should be another normal method to do this task…