title: Set a Server-Wide Session Variable?
body: <p>I'm trying to "turn off" my website by setting a simple session variable that is either "ON' or "OFF".</p>
  
  <pre><code>&lt;?php
      $_SESSION['STATUS'] = "OFF";
  ?&gt;
  </code></pre>
  
  <p>On every other page, the website checks if STATUS is off and redirects the user to a "We're Closed" page.</p>
  
  <pre><code>&lt;?php
      session_start();
      if ($_SESSION['STATUS'] == "OFF") {
          echo "&lt;script&gt;window.location='http://*****/sorry/';&lt;/script&gt;";
      }
  ?&gt;
  </code></pre>
  
  <p>The problem is that the session variable that I set is exclusive to <em>my</em> session, and any other clients that also might be browsing the site are left unaffected by the change. Is there a way to set a server-wide session variable that affects every session?</p>