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

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

WBOY
WBOYOriginal
2016-06-23 13:18:081419browse

 ff下正常

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

求解


回复讨论(解决方案)

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

没有禁用,网站打开的时候,在internet templat files 目录里面是有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