Home  >  Article  >  Backend Development  >  PHP code to send cookies using header_PHP tutorial

PHP code to send cookies using header_PHP tutorial

WBOY
WBOYOriginal
2016-07-21 15:57:02986browse

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)


www.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