Home >Backend Development >PHP Tutorial >Warning: session_start(): Cannot send session_PHP教程

Warning: session_start(): Cannot send session_PHP教程

WBOY
WBOYOriginal
2016-07-13 10:52:36851browse

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

I want to know why a warning message appears when adding session_start();

session_start(): Put it at the beginning of the file and try it

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

If you are using cookie-based sessions, do not output anything to the browser before 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...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn