cookie
<?php
setcookie("user","姜",time()+60);//设置cookie,并且有时间限制
?>
<?php
setcookie("user","jiangger",time()-3600);//删除cookie
?>
<html>
<body>
</html>
</body>
//getcookie
<?php
if(isset($_COOKIE["user"]))
{
echo "welcome" . " ".$_COOKIE["user"] ;
}
else
{
echo " welcome gust";
}
?>