Possible Duplicate:
Cookies on localhost with explicit domain
this is my code after the user has logged in:
setcookie("user",$entered_username, time()+(60*60*5));
setcookie("password",$entered_password, time()+(60*60*5));
header('Location: frontpage.html');
This is my code on frontpage.html:
<!DOCTYPE HTML>
<html>
<head>
<?php
if (isset($_COOKIE["user"]))
echo $_COOKIE["user"] ;
else
echo "Welcome guest";
?>
</head>
<body>
</body>
</html>
This does not work on my wamp local host? what is the problem?