title: Comparing Session Variables in PHP
body: <p>I am trying to create a menu where based on the users access level in the database the user will be shown one of two different menus.</p>
  
  <p>Right now my code is as follows:</p>
  
  <pre><code>if($_SESSION['acl'] == "Administrator"){
      echo $_SESSION['acl'];
      echo "You are an administrator";
  }
  {
      echo $_SESSION['acl'];
      echo "You are a basic user";
  }
  </code></pre>
  
  <p>My issue is that the test for the if statement always fails and goes directly to the else section.  Any help would be appreciated.</p>