title: Setting permission levels in PHP
body: <p>I have a few pages in PHP, basically one is a login which sets sessions (including user permissions)</p>
  
  <p>so in my database i have columns username, password, user, admin, special and it sets them all in sessions</p>
  
  <p>on each page i have the following code:</p>
  
  <pre><code>if($_SESSION["special"] != 'yes')
  {
  echo 'Access Denied!';
  exit();
  }
  </code></pre>
  
  <p>so it will stop everything from running.</p>
  
  <p>all of my 'Admin' users do not have the 'special' user level as they should just override this and have access to everything but as the admin users do not have the 'special' user permission, the code above runs and stops the user from seeing the page.</p>
  
  <p>how can i make the 'admin' users override this altogether?</p>