此 cookie 在一小时后过期:setcookie("user", "runoob", time()+3600);// 输出 cookie 值echo $_COOKIE["user"];// 查看所有 cookieprint_r($_COOKIE);?>