Home  >  Article  >  php教程  >  PHP中关于COOKIE域问题

PHP中关于COOKIE域问题

WBOY
WBOYOriginal
2016-06-13 10:50:29748browse


如果你的网站访问路劲是这样的:www.2cto.com
如果你这样设置 set_cookie('a', 'a') 的话,在google浏览器下会遇到一个隐藏的BUG,域的问题
解决方案:
[php] 
setcookie("名称", '值', NULL, '/') 
作者:initphp

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