PHP+MYSQL+COOKIE5

<?php
header("content-type:text/html;charset='utf-8'");
setcookie('username','',time()-1);
setcookie('islogin','',time()-1);
setcookie('autologin','',time()-1);
exit(
"<script>
alert('退出成功');
location.href='dl.php';
</script>"
);
?>

这句话代表退出了,就-1就行了

posted @ 2020-04-17 23:56  贵哥的编程之路  阅读(0)  评论(0)    收藏  举报