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

用header 发送cookie的php代码

程序员文章站 2022-11-25 18:57:02
用header 发送cookie  header("set-cookie: testcookie=中文; path=/; ...
用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;改为自己的(不知道怎么设就删除它们]