powered by Jive Software

How to get the number of users online on a php page

I was browsing the phpMyAdmin mysql databases and i couldnt find a table that shows the number users online. Is there any table there can display that cus i would like to display on my homepage.



Hey Callum,

The reason why you were not able to find that info is because it’'s not there. We are not keeping track of the active sessions in the database. I think that when we add support for remote administration and JMX you will be able to get that information.

In the meantime, you can write your own servlet that may return the information that you need. This way you will be adding “kind of webservices” that may return server information.


– Gato