Home >Backend Development >PHP Tutorial >怎么区分同名cookies有关问题

怎么区分同名cookies有关问题

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-13 11:44:54945browse

如何区分同名cookies问题
如果是ASP 我会写成

写入:
response.cookies(cookies_name)("admin")
读取:
request.cookies(cookies_name)("admin")

如果不加cookies_name,就可能会造成我电脑里的多个站的Cookies混一起,登录A等于也登录了B

PHP我只查到

读取:
$_COOKIE["admin"]

PHP需要怎么写法才能跟ASP一样效果

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