my cookies not seem to be working. the seesion works fine tho. am i missing some thing?
o and i doesnt print echo"on";
if($remember_p == "on")
{
//remember username for 42 hrs
setcookie("id", $id, time()+20);
setcookie("username", $username_p, time()+20); //seconds
//header("location: index.php");
if(isset($_COOKIE['username']))
{
echo"on";
}
}
else if($remember_p == "")
{
//create session variables
$_SESSION["id"] = $id;
$_SESSION["username"] = $username_p;
header("location: index.php");
}