Home  >  Article  >  Backend Development  >  COOKIE domain issues in PHP_PHP tutorial

COOKIE domain issues in PHP_PHP tutorial

WBOY
WBOYOriginal
2016-07-13 17:52:04797browse


If your website visits Lu Jin is like this: www.2cto.com
If you set set_cookie('a', 'a') like this, you will encounter a hidden BUG in Google Chrome, a domain problem
Solution:
[php]
setcookie("name", 'value', NULL, '/')
Author: initphp

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/478149.htmlTechArticleIf your website access road is like this: www.2cto.com If you set set_cookie(a, a), you will encounter a hidden BUG under Google Chrome, the solution to the domain problem...
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