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

PHP中关于COOKIE域问题

WBOY
Release: 2016-06-13 10:50:29
Original
807 people have browsed it


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

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 Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template