title: Session destroy not working in session handler class
body: <p>I use <a href="http://www.phpclasses.org/package/7357-PHP-Store-session-data-in-MySQL-using-PDO.html" rel="nofollow">this class</a> but have issue. All sessions found in the database are not deleted.</p>
  
  <p>What command to clear the session from the database should be used?</p>
  
  <p>I tested with Firefox and Chrome. This is my code for clear session:</p>
  
  <pre><code>&lt;?php
  ob_start();
  require_once '../inc/class_session.inc.php';
  $session = new Session();
  if(!isset($_SESSION['admin']) OR !isset($_SESSION['userid'])){
      unset($_SESSION['admin']);
      unset($_SESSION['userid']);
      session_destroy();
      session_unset();
      header('location: index.php');
      exit();
  }
  ?&gt;
  </code></pre>