Home >Backend Development >PHP Tutorial > IE上cookie设置无效

IE上cookie设置无效

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-13 13:23:27886browse

IE下cookie设置无效

PHP code
<!--

Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.CodeHighlighter.com/

-->
$tommorrow = time() + 600;
setcookie('testAd', '1', $tommorrow);
print_r($_COOKIE);



打印cookie的时候用IE浏览器居然没有,火狐中是有的?
谁能解释一下?


------解决方案--------------------
修改一下cookie的失效时间,设置的长一点!
Statement:
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