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)
The above introduces the PHP code of response.addheader using header to send cookies, including the content of response.addheader. I hope it will be helpful to friends who are interested in PHP tutorials.