Currently users online script

PHP - Users Online Script

Hello, if you are developing a web application, you may need this online users script to show how many users is online. Yesterday i wrote a php class for it and decide to share it. Creating table Well, Before using this class, you must create a table in your database: CREATE TABLE `online_users` ( `session_id` char(150) NOT NULL, `last_activity` int(11) NOT NULL default '0' ); Creating php file