cookie not registering
<p>I have a login page that asks the users login details sends it to a cookie and then validates the details but for some reason it does  not allow me to login in. If I test it locally on abyss webserver installed on my computer it works fine but if I test it on my hosting server it does not work here is my code:</p>

<p>It works like this as soon as the login page is selected it asks the details what then happens then if the user is not activated it asks to activate the user the login works if the user is activated but as soon as the user is not it does not continue further than the activation request.</p>

<p>Login ask:</p>

<pre><code>&lt;form method="post" action="&lt;?php echo $_SERVER['PHP_SELF'];?&gt;?cont=true&amp;loginUSER=true" style="font-family:Calibri;"&gt;
&lt;fieldset style="border-style:none"&gt;
        &lt;p&gt;
        Email: &lt;input style="position:absolute; left:30%;" onkeyup="javascript: this.value=this.value.toLowerCase();" class="details" type="text" name="email" id="email" /&gt;
        &lt;/p&gt;
        &lt;p&gt;
        Password: &lt;input style="position:absolute; left:30%;" class="details" type="password" name="password" id="password" /&gt;
        &lt;/p&gt;
        &lt;input type="submit" value="login" class="btn" style="background-color:#FFF;    border-style:solid; border-width:thin;  font-family:Calibri;" /&gt;
        &lt;/fieldset&gt;
        &lt;/form&gt;
</code></pre>

<p>The it check the login first if no cookie exists and then if one does exists</p>

<pre><code>//A new login first create cookies and check if they are valid
        if(!isset($_COOKIE["thebillboard"]))
        {
            //Don't allow user to login if this is not true;        
            $thisIsValid = false;
            //set cookies for login details entered!
            $email = $_POST["email"];
            $pass = $_POST["password"];

            setcookie("thebillboard",$email,time()+3600);
            setcookie("password",$pass,time()+3600);

            //check if the login details exists
            $clients = mysql_query("SELECT * FROM clients");
            while($row = mysql_fetch_array($clients))
            {
                if(($row["businessEmail"] == $email) &amp;&amp; ($row["password"]) == $pass)
                {
                    $thisIsValid = true;
                    break;
                }
            }
        }
        //If the cookies exists check if they are valid
        elseif(isset($_COOKIE["thebillboard"]))
        {
            //Don't allow user to login if this is not true;        
            $thisIsValid = false;
            //get cookies for login if it exists!
            $email = $_COOKIE["thebillboard"];
            $pass = $_COOKIE["password"];

            //check if the login details exists
            $thisIsValid = false;
            $clients = mysql_query("SELECT * FROM clients");
            while($row = mysql_fetch_array($clients))
            {
                if(($row["businessEmail"] == $email) &amp;&amp; ($row["password"] == $pass))
                {
                    $thisIsValid = true;
                    break;
                }
            }
</code></pre>

<p>then if the variable $thisIsValid is true it continues and shows the login user else it returns error in login details</p>
