I am having an issue trying to get two users or more to access the admin page. I tried adding a || between them but it does not work for either of them. User here in the example is xgrh and zeap. Any help would be appreciated not sure what I am doing wrong.
<?php
session_start();
if (!isset($_SESSION['uid']) || $_SESSION['lanId'] != 'xgrh'|| $_SESSION['lanId'] != 'zeap') {
header('refresh:2;url=http://a0319p528/dc399supplies/index.php');
echo "
<div class='container'>
<div class='panel panel-danger'>
<div class='panel-heading'> <h3>Access Denied!! You will now be redirected back</h3></div>
<div class='panel-body'><img src='../admin.jpg'></div>
</div>
</div>";
}
?>