<u>复制代码</u> 代码如下:<br><?php <BR>setcookie("username","zhuzhao",time()+10);//设置cookis保存5秒 <br>?> <br><br><br><u>复制代码</u> 代码如下:<br><?php <BR>if(isset($_COOKIE["username"])) <br>{ <br>echo $_COOKIE["username"]; <br>} <br>else <br>{ <br>echo "cookie没有找到"; <br>} <br>?> <br>