PHP Check if username is set
<p>All im trying to do is see if the username is set in the cookies, ive tried <code>isset()</code> and <code>empty()</code> with no luck. Also i tried <code>$HTTP_COOKIE_VARS['username']</code> and <code>$username</code> with those functions and the php does nothing no matter if the cookie username is set or not. Web pages are fake, but i use real ones that i know work in my code. </p>

<pre><code> $HTTP_COOKIE_VARS['username'] = $username;

 if(isset($HTTP_COOKIE_VARS['username']))
 {
 header("page2.html"); 
 }

 else {
 header("page1.html"); 
 }
</code></pre>
