您好,欢迎访问一九零五行业门户网

php报错:Cannot send session cookie – headers already sent by的解决方法

utf-8 ef bb bfutf-16 big endian fe ffutf-16 little endian ff feutf-32 big endian 00 00 fe ffutf-32 little endian ff fe 00 00
复制代码
解决方法:在进行php session 操作时,如果出现:warning: cannot send session cookie – headers already sent…”或者“cannot add header information – headers already sent…”
只需对php.ini中的output_buffering进行设置,默认值为no,修改为1即可。
其它类似信息

推荐信息