Heim > Artikel > Backend-Entwicklung > php session_start()出错原因分析及解决方法_php技巧
错误提示: Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent
原因:在session_start()之前如果有输出内容,会出错,
解决办法:在session_start()之前加上ob_start();
index.php