Clean way to make a php login script on a site with includes?
<p>Basically I have an index.php file with navigation in form of includes <em>only</em>.</p>

<hr>

<ul>
<li><p>My script can check whether a user exists by checking a database.</p></li>
<li><p>It can also log you in if the check was successful.</p></li>
</ul>

<p>My problem is <strong>redirects</strong>! Do I really have to use
<code>echo "&lt;meta http-equiv=refresh content=\"1; URL=index.php\"&gt;";</code>?</p>

<p>And I also have to make tons of if-statements to cover the entire possibilities of a users actions (have to take evil people into account).</p>

<p>Headers are already ruled out because I use includes and requires.</p>

<p>I'm on the brinck of switching to ASP.NET or something rediculous... This scripting is making me mad :P</p>
