I tried to write a code that set a cookie and check if isset this cookie show massage "cookie create" else show "cookie not create" but it not work this code in localhost work correctly.
<html>
<head>
<?php setcookie("a","abcdef",time()+3600); ?>
</head>
<body>
<?php
phpinfo();
if(isset($_COOKIE['a']))
{
echo $_COOKIE["a"];
}
else
{
echo "no cookie";
}
?>
</body>
</html>