title: PHP - How to logout all logged in users?
body: <p>I want a method to force logout all logged in users using Php</p>
  <p>the session check code goes like this:</p>
  <pre><code>&lt;?php
  include &quot;dbConn.php&quot;;
  session_start();
  if (!isset($_SESSION['login_user'])) {
     header(&quot;location:Login.php&quot;);
     die();
  }
  ?&gt;
  </code></pre>
  <p>so it depends on the session variable &quot;<code>$_SESSION['login_user']</code>&quot; , So is there a way to unset this variable for all the logged in users ?</p>
  <p>Regards</p>