开发者

session_start() error since today

Since today in all my apps this error started to show:

Warning: session_start() [function.session-start]: Cannot send session cache lim开发者_运维技巧iter - headers already sent (output started at /home/fb/index.php:5) in /home/fb/facebook.php on line 37

What changes ware made by Facebook today and how can I fix this?


You should remove any code above session_start(). Generaly this function sould be executed before any output. (For example HTML code)

Another posibility it that the file encoding is not correct. Check for spaces and etc. before session_start().

// whitespace, any mark up or include that displays something <HERE>
// it will give you that error
<?php
session_start();
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜