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

IE上cookie设置无效

WBOY
Release: 2016-06-13 10:33:29
Original
981 people have browsed it

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);
Copy after login


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


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