title: Check if a PHP session is active;
body: <p>Basically what I am trying to achieve is this, the below does not work but you should get the idea.</p>
  
  <pre><code>if (session_status() == PHP_SESSION_ACTIVE) {
    show specific icons
  }
  else
  {
    don't show specific icons
  }
  </code></pre>
  
  <p>What am I doing wrong. How can I reliably check if a session is started in php 5.4. I have read somewhere that this is the recommended way.</p>