This code shows all session variables that are active.
1 2 3 4 5 6 7 8 |
<?php session_start(); foreach ($_SESSION as $key=>$val){ echo $key." ".$val; } ?> |
You just have to set each page with a session as the name of the page and with a time, the this will show/track how many people are viewing what page via the admin-logs page, it will search and show info put out by the session such as the name of page and time. Easy with wordpress, just add this to the header. Just count the loops, and that will show you the amount. Add this to your home page to show how many users online at the present time you just entered that webpage.