title: Can I count sessions to determine number of people online?
body: <p>I am confused about something. When I try to search how to count online users in PHP, all answers related with MySQL and many different ways.</p>
  
  <p>In my script, any user that submits the login form creates a $_SESSION['$nickname']</p>
  
  <p>So I thought, can I count login sessions with count($_SESSION['$nickname']); and show it in my page?</p>
  
  <p>Or is this totally a wrong logic?</p>