Lenix Lenix -

php 删除或设置cookie不生效问题

把设置cookie的代码,写到最前面 写到 php的 header 函数前面 ,如果有html代码,也请写到html代码输出的前面,即可. … The post php 删除或设置cookie不生效问题 first appeared on Lenix Blog.

设置cookie时,无论是使用php的header函数还是html代码输出,都要把代码放在最前面。

cookie header函数 html代码 php 最前面

相关推荐 去reddit讨论