I\'m a beginner to PHP and I\'m writing some code to my site. I want to get the total number of sessions that is active at that instant. I knew this is some difficult task b
This will count the amount of sessions open at once.
$number_of_users = count(scandir(ini_get("session.save_path")));