Troubleshooting “Warning: session_start(): Cannot send session cache limiter - headers already sent”

后端 未结 15 1772
醉酒成梦
醉酒成梦 2020-11-28 14:34

i am getting Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at error

<
15条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-11-28 15:02

    For others who may run across this - it can also occur if someone carelessly leaves trailing spaces from a php include file. Example:

     
    

    In the case above, if the mylib.php has blank spaces after its closing ?> tag, this will cause an error. This obviously can get annoying if you've included/required many files. Luckily the error tells you which file is offending.

    HTH

提交回复
热议问题