xionhack Posted December 25, 2009 Share Posted December 25, 2009 Hello. I have a website in php and people can login. I want to make an admin control panel where u can see how many people are currently logged in and also how many people in total (including the ones that are not logged in) are visiting the site in this moment. How can I do that? Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/186304-stats-of-viewers/ Share on other sites More sharing options...
oni-kun Posted December 25, 2009 Share Posted December 25, 2009 Shouldn't be too hard, if you're having trouble wrapping the concept around it look at this tutorial: http://www.ineedtutorials.com/code/php/how-many-visitors-online-php-tutorial You can easily write it so when a user logs in (session is started) , It adds an entry into the database 'members online:' instead of just guests. Quote Link to comment https://forums.phpfreaks.com/topic/186304-stats-of-viewers/#findComment-983895 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.