网站地图    收藏   

主页 > php专栏 > php会话 >

session Cannot send session cache limiter 错误提示 - php会

来源:自学PHP网    时间:2014-11-27 20:45 作者: 阅读:

[导读] warning: session_start() [function session-start]: cannot send session cache limiter - headers already sent (output started at e:php www phpfensi com admin php:1) in e:phpwww phpfensi comlogolistadminlogo php on line 2...

session Cannot send session cache limiter 错误提示

错误提示,session cannot send session cache limiter,开始时经常会碰到如下提示:warning: session_start() [function.session-start]: cannot send session cache limiter - headers already sent (output started at e:php www.phpfensi.com admin.php:1) in e:phpwww.phpfensi.comlogolistadminlogo.php on line 2

这是提供session前面己经有输出了,我们只要把session_start()放在最前面,同时最了为避免出错提供可以在前面加@,如@session_start();这样就可以了。

同时也可以在php.ini中修改session.auto_start = 0 为 session.auto_start = 1就可以了。

自学PHP网专注网站建设学习,PHP程序学习,平面设计学习,以及操作系统学习

京ICP备14009008号-1@版权所有www.zixuephp.com

网站声明:本站所有视频,教程都由网友上传,站长收集和分享给大家学习使用,如由牵扯版权问题请联系站长邮箱904561283@qq.com

添加评论