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就行了

发布了25 篇原创文章 · 获赞 2 · 访问量 79

猜你喜欢

转载自blog.csdn.net/qq_37805832/article/details/105591310