Home > Backend Development > PHP Tutorial > ie 下用setcookie 设置了过期时间7天 但是浏览器关闭就丢失,如何解决

ie 下用setcookie 设置了过期时间7天 但是浏览器关闭就丢失,如何解决

WBOY
Release: 2016-06-23 13:18:08
Original
1435 people have browsed it

 ff下正常

setcookie("authtoken",$strauthtoken,time()+1000*24*3600,"/","xxx.xxx.com");

求解


回复讨论(解决方案)

检查一下你的ie是否禁用了cookie 

没有禁用,网站打开的时候,在internet templat files 目录里面是有cookie文件的,网页一关就没了

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