Solution: PHP setcookie Warning: Cannot modify header information - headers already sent to avoid this problem add ob_start() at beginning of php and add ob_end_flush() at end of php code like below
<?php
ob_start(); // Initiate the output buffer
//your code
ob_end_flush(); // Flush the output from the buffer
?>
<?php
ob_start(); // Initiate the output buffer
//your code
ob_end_flush(); // Flush the output from the buffer
?>
No comments:
Post a Comment