restrict users with sessions
<p>I am looking to add pages on my site that only people with a certan rank will be able to see while others will be kicked to a different page. What would be a simple way of doing this?</p>

<p>This is what I have right now.</p>

<pre><code>  &lt;?php  session_start(); 
  $rank=$_SESSION['rank'];
  $loggedinusername=$_SESSION['loggedinusername'];
  $loggedinuseremail=$_SESSION['loggedinuseremail'];
  ?&gt;
</code></pre>

<p>Thanks</p>
