<?php setcookie ( "name" , "" , time ()- 60 ); setcookie ( "pass" , "" , time ()- 60 ); if(empty($_COOKIE['name'])||empty($_COOKIE['pass'])){ echo "注销成功" ; }else{ echo "注销失败" ; } ?>
setcookie("name","",time()-60);
setcookie("pass","",time()-60);
改成
setcookie("name","随便一些内容",time()-60);
setcookie("pass","哈哈",time()-60);