Home > Article > Backend Development > PHP error: Cannot send session cookie – headers already sent by solution
Solution: When performing PHP session operations, if: Warning: Cannot send session cookie – headers already sent…” or “Cannot add header information – headers already sent…” appears Just set the Output_buffering in php.ini, the default value is no, change it to 1. |