Home  >  Article  >  Backend Development  >  session Cannot send session cache limiter error message_PHP tutorial

session Cannot send session cache limiter error message_PHP tutorial

WBOY
WBOYOriginal
2016-07-13 10:53:55851browse

session cannot send session cache limiter error message

You will often encounter the following prompts at the beginning

warning: session_start() [function.session-start]: cannot send session cache limiter - headers already sent (output started at e:php tutorialwww.bKjia.c0madmin.php:1) in e:phpwww.bKjia. c0mlogolistadminlogo.php on line 2

This is to provide that there is already output in front of the session. We only need to put session_start() at the front. At the same time, in order to avoid errors, we can add @ in front, such as @session_start(); that’s it.

At the same time, you can also modify session.auto_start = 0 in php.ini to session.auto_start = 1

That’s it.

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/632356.htmlTechArticlesession cannot send session cache limiter The error message often encounters the following warning at the beginning: session_start() [function. session-start]: cannot send session cache limiter - h...
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