How to analyze and solve the problem of php session_start () error
The main content of this article is "how to analyze and solve the problem of php session_start () error", interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Let the editor take you to learn "how to analyze and solve the problem of php session_start () error"!
Error message: Warning: session_start () [function.session-start]: Cannot send session cache limiter-headers already sent
Reason: if there is an output before session_start (), there will be an error
Solution: add ob_start () before session_start ()
Index.php
The copy code is as follows:
Index2
Index2.Php
The copy code is as follows:
Index
At this point, I believe you have a deeper understanding of "how to analyze and solve the problem of php session_start () error". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!