PHP 5: Session Manager Implementation Carlos Alberto Junior (contact me)
This class can be used to manage logged user sessions.
It can register a session and store the user id, login and last access date and time in session variables.
The class can also check whether an user session is active if its last access occurred in the last 5 minutes. In that case the last access date and time is updated to the current date and time.