How come when I have the following code:
Code:
$countere = '1';
setcookie('counter',$counter,time() + (720)); // 86400 = 1 day
The time doesn't ever get set? I have verified this through my browser and by closing my browser. If it matters I am using firefox to see this.
The cookie says it expires: At end of session
I am then reading the cookie information like:
Code:
<?PHP
$counter = $_COOKIE["counter"];
echo $counter;
$newNumber = $counter +1;
setcookie("counter", "$newNumber");
echo $newNumber;
if ($newNumber >6)
{
echo "Sorry you need to wait 5 more minutes before logging in";
setcookie("counter", "$newNumber");
}
?>