Warning: Cannot modify header information – headers already sent by …

Quick Solution:

You have sent HTML before calling ob_start(). So when PHP tries to set your session cookie, it can’t, and you get the warning.

Fix it by move the PHP code for ob_start() to the very top of the page:



Leave a Reply

Your email address will not be published. Required fields are marked *