Development needs to touch PHP, feel very fast, in debugging PHP session is always wrong,
Warning:session_start (): Cannot send session cache Limiter-headers already sent (output started at xxx:2) in. php on Li NE 3
Similar to the wrong, compared with the source code as if they did not write wrong.
PHP start symbol
The session cannot have any character output before it starts,
Header () is the same
Put the code ahead, remove the preceding space, and you're ready.
-------------------correct
Session_Start ();
$username;
$username = "Test";
Session_register ("username");
Echo $_session[username];
?>
-------------------Error
Session_Start ();
$username;
$username = "Test";
Session_register ("username");
Echo $_session[username];
?>
http://www.bkjia.com/PHPjc/509216.html www.bkjia.com true http://www.bkjia.com/PHPjc/509216.html techarticle development need to contact PHP, feel very fast, in debugging PHP session always error, Warning:session_start (): Cannot send session cache Limiter-headers Already sent (output sta ...