首页 > 应用开发 > IT综合 > cannot send session cache limiter-headers already sent (output start at ............)
當使用 session start() 時,出現error
錯誤訊息的意思是在SESSION開始前就有資料送出到使用者端,可以:
1、啟用PHP.INI的設定output_buffering = 4096
2、session_start() 放在最頂,如果部 server 的 php 設定是 cookie-based sessions,session_start() 要在輸出任何資料到瀏覽器之前執行。
[@more@]来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/786540/viewspace-981124/ ,如需转载,请注明出处,否则将追究法律责任。