首頁 >php教程 >php手册 >Warning: session_start(): Cannot send session

Warning: session_start(): Cannot send session

WBOY
WBOY原創
2016-06-13 09:53:40794瀏覽

Warning: session_start(): Cannot send session

Warning: session_start(): Cannot send session cache limiter

echo "Homen
";
session_start();

Warning: session_start(): Cannot send session cache limiter

想知道为什么session_start();加一句就会出现警告消息

session_start(): 放在文件开始  试试

Note: If you are using cookie-based sessions, you must call session_start() before anything is outputted to the browser.

如果你正在使用基于cookie的sessions,不要在session_start前面输出任何东西都浏览器
陳述:
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn