I'm building a website for me and my friends that should include a forum and a chat. I'm developing the list of the friend but I don't know how to display wich users are online and which not. The users are autenticated with sessions variable. To be able to check wich users have a session open with the autentication variable $_SESSION I created a session handler that store the session datas in the database. In the table where I store the session I added a field that for default is null and should be filled by the login script with the user id so than I can check which users are online. Unfortunatly the login script work but doesn't fill the field. no error is displayed (I have all the errors activated).
I wanted to know if there is any easyer way to check which user is online. I know just PHP language and not much of it (I can't understand the object oriented PHP).