Home >Backend Development >PHP Tutorial >Php Cookie的一个使用注意点_PHP

Php Cookie的一个使用注意点_PHP

WBOY
WBOYOriginal
2016-06-01 12:24:12721browse

Cookie

复制代码 代码如下:
setcookie('test', 'this is a cookie test');
echo ($_COOKIE['test']);
?>
上面代码,并不会显示你想要的结果
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