Use header to send cookies
header("Set-Cookie: testcookie=Chinese; path=/; domain=.phpv.net; expires=".gmstrftime("%A, %d-%b-%Y %H: %M:%S GMT",time()+9600));
Please change path=/; domain=.phpv.net; to your own (delete them if you don’t know how to set them)
http://www.bkjia.com/PHPjc/317985.htmlwww.bkjia.comtruehttp: //www.bkjia.com/PHPjc/317985.htmlTechArticleUse header to send cookie header("Set-Cookie:testcookie=Chinese;path=/;domain=.phpv. net;expires=".gmstrftime("%A,%d-%b-%Y%H:%M:%SGMT",time()+9600)); Please change path=/;domain=.phpv.net ;Changed to self...
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