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

Warning: session_start(): Cannot send session

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB原创
2016-06-13 09:53:40810浏览

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