<?php
setcookie("user","john",time()+3600,"/");
if(isset($_COOKIE['user'])){
echo"cookie'user' is set! Value:",$_COOKIE['user'];
}else{
echo"cookie'user'is not set!";
}
?>
To embed this project on your website, copy the following code and paste it into your website's HTML: