window.onunload中怎么清除cookie

WBOY
Release: 2016-06-13 12:44:29
Original
951 people have browsed it

window.onunload中如何清除cookie
我现在想在window.onunload方法中清除cookie,但是具体的清除方法怎么写,我是现在.php文件中的,代码如下
<script><br /> window.onunload=function(){<br /> //在这里清楚cookie<br /> } <br /> </script>
为何我在这里获取cookie也取不到,取的方法如下$_COOKIE["CODEIMG"],请大神指点下,本人菜鸟

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template