php7中如何设置COOKIE和销毁COOKIE
php7中如何设置COOKIE和销毁COOKIE
创新互联建站提供高防服务器、云服务器、香港服务器、服务器托管等
1,如何设置COOKIE
setcookie ( string $name [, string $value = "" [, int $expire = 0 [, string $path = "" [, string $domain = "96net.com.cn" [, bool $secure = false [, bool $httponly = false ]]]]]] ) : bool
setrawcookie() 再设置值时候原样输出
2,销毁COOKIE
setcookie("TestCookie", $value, time()-3600);
3,获取COOKIE值
echo $_COOKIE["TestCookie"];
标题名称:php7中如何设置COOKIE和销毁COOKIE
URL网址:http://abwzjs.com/article/jedpep.html