欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  后端开发

Warning: session_start(): Cannot send session_PHP教程

程序员文章站 2022-05-29 19:34:13
...
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前面输出任何东西都浏览器

www.bkjia.comtruehttp://www.bkjia.com/PHPjc/632469.htmlTechArticleWarning: session_start(): Cannot send session Warning: session_start(): Cannot send session cache limiter echo a href='../home.php'Home/anbr /; session_start(); Warning: session_sta...