Can't figure out !isset statement
<p>I'm trying to use session variables to limit the access to a page. I have 3 levels of access: admin, help and tech. On pages with help or tech access admin is also allowed. I can't figure out how to write the if statement.
Here is the code I have:</p>

<pre><code>&lt;?php
    //Start session
    session_start();

    //Check whether the session variable SESS_MEMBER_ID is present or not
    if(!isset($_SESSION['SESS_MEMBER_ID']) || (trim($_SESSION['SESS_MEMBER_ID']) == ''))  {
        header("location: fail_access.php");
        exit();
    }
    if ((!isset($_SESSION['SESS_ACCESSLVL']) == 'admin') || (!isset($_SESSION['SESS_ACCESSLVL']) == 'help')) {
        header("location: fail_access.php");
        exit();
    }
?&gt;
</code></pre>

<p>When I have it like it is shown here it allows all levels to access the page that should be restricted to 'help' (that also includes 'admin').
Can someone point out the error of my ways?? Any help greatly appreciated. I'm very new at this an obviously don't fully understand it.</p>

<p>Cheers</p>
