Hi,
I have a login code that uses Sessions to store the users data. However, I would like to display the logged in users to the rest of the users, ie. on index.php.

Example:
Logged in users: Rudi, test, adminstrator

How would I be able to create a record of who's logged in, and then automatically delete it when the user's session expires, in order to make this process almost "real-time".

I hope you understand what I mean.

Rudi