I am trying to restrict access to a page to only 3 usernames in my site. I can get it to restrict access to one user but am having problems with my syntax and logic for more than one.
Example:
<?php
session_start();
if($HTTP_SESSION_VARS['username'] != ("e042868")){
header("Location: ../navigation.php");
}
?>
So the problem I am having is getting access to usernames: comm01 and supt07 as well...but when I try to set up an OR statement, it just won't work.
Anyone have a thought?