x
 
<!DOCTYPE html>
<?php
// 将过期时间设置为一小时前
setcookie("user", "", time() - 3600);
?>
<html>
<body>
<?php
echo "Cookie 'user' 已被删除。";
?>
</body>
</html>