首頁  >  文章  >  後端開發  >  session Cannot send session cache limiter 错误提示_PHP教程

session Cannot send session cache limiter 错误提示_PHP教程

WBOY
WBOY原創
2016-07-13 10:53:55802瀏覽

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.bKjia.c0madmin.php:1) in e:phpwww.bKjia.c0mlogolistadminlogo.php on line 2

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

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

就可以了。

 

www.bkjia.comtruehttp://www.bkjia.com/PHPjc/632356.htmlTechArticlesession cannot send session cache limiter 错误提示 开始时经常会碰到如下提示 warning: session_start() [function.session-start]: cannot send session cache limiter - h...
陳述:
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn