Hi
I've got cookie problems on localhost php/apache, winXP, Firefox
I've been using this page to set and test a cookie and it works fine (the setcookie was from HERE
<?php if($_GET['action']=="set"){setcookie("clientid", "1", false, "/", false);
header("Location: TEST-cookie.php");
}
if($_GET['action']=="delete"){setCookie("clientid");
header("Location: TEST-cookie.php");
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>cookie test</title>
</head>
<body>
<a href="TEST-cookie.php?action=set">setting cookie</a><br />
<a href="TEST-cookie.php?action=delete">deleting cookie</a><br /><br />
<?php
echo "cookie = ".$HTTP_COOKIE_VARS["clientid"];
?>
</body>
</html>
that works fine but when i try to test it with
if(isset($HTTP_COOKIE_VARS["clientid"])){
in a different page it reckons the cookie hasn't been set
is there some obvious thing I'm missing here ?
thanks