title: Restrict a particular user to access the particular webpage
body: <p>I want to restrict users to access particular webpages in my applicatipn. In my application I have 4 webpages like Mumbai, Delhi, Bangalore, Kolkata and I have havie 4 users say User1, User2, User3 and User4. All users are Admin.</p>
  
  <p>My requirement is that all 4 user can't access Mumbai page, 
  User1 can access only Delhi page, 
  User2 and User3 can access only Bangalore page and 
  User4 can access only Kolkata page.</p>
  
  <p>I Used following Code for Delhi Page:</p>
  
  <pre><code>$allowed_users = array('User2','User3','User4');
  if (!in_array($login_session['login_user'], $allowed_users)) {
     echo "You dont have permission to access this page";
     echo '&lt;meta http-equiv="refresh" content="1; url=Admin-Dashboard.php"&gt;';
     exit();       
  }
  </code></pre>
  
  <p>But it won't work </p>