I see the examples at http://www.php.net/cookies I am still having problems....... When I refresh the screen, the value jamie.lory for the login cookie is printed to the screen. That part is ok, however,
<?
$c_email = "jamie.lory";
if ($login == "") {
SetCookie("login", $c_email, Time()+3600);
print "You are now logged in";
}
else
{
echo $login;
echo $HTTP_COOKIE_VARS["login"];
}
?>
the problem is; if I go to a different page and try and print $login, nothing happens. Below is my code.
<?
include 'marker.php';
echo $login;
echo $HTTP_COOKIE_VARS["login"];
?>
Note: It doesn't seem to work wether I use the include statement or not.
I must be missing something here....
Any help is appreciated.
Jamie