<?php 

$value = "my cookie value";
// 发送一个 60秒过期的 cookie
setcookie("TestCookie",$value, time()+60);

// 输出单独的 cookie
echo $_COOKIE["TestCookie"];
?>