I would like to list people logged in to my system. I use sessions to see if a user is logged in. Now, I'm thinking of making a column in my user table (MySQL) which shows if the user is online, but I need it to be reset after a certain time of inactivity, let's say you're logged in for 1 hour before you are automaticly logged out or something.
How can I do this in a smart way? Set the value in the table from 1 (online) to 0 (offline)?
I tried looking in the PHP Manual and search this forums but I couldn't find anything that helped me...
Thanks in advance...
Jorgen Bitzekis a.k.a. Joffe