欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  后端开发

response.addheader 用header 发送cookie的php代码

程序员文章站 2024-01-16 00:01:04
...
用header 发送cookie
header("Set-Cookie: testcookie=中文; path=/; domain=.phpv.net; expires=".gmstrftime("%A, %d-%b-%Y %H:%M:%S GMT",time()+9600));
请将path=/; domain=.phpv.net;改为自己的(不知道怎么设就删除它们]

以上就介绍了response.addheader 用header 发送cookie的php代码,包括了response.addheader方面的内容,希望对PHP教程有兴趣的朋友有所帮助。

相关标签: response.addheader