php session_start()关于Cannot send session cache limiter - headers

来源:互联网 发布:mac win10 文件共享 编辑:程序博客网 时间:2024/05/16 09:35

 在windows下编程,当使用session_start()方法的时候,有时会报 session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /var/www/inpublisher/php1.php:1)这样的错误.

 

解决办法: 
修改php.ini中的session.auto_start = 0 为 session.auto_start = 1  
然后重新启动apache...