This option will reset the home page of this site. Restoring any closed widgets or categories.

Reset

Warning: session_start(): Cannot send session cookie headers already sent

Some times when you intergrate your existing wordpress blog with an external website or at times when you go for something like
<?php
require_once('body.php');
?>

2.php
<?php
session_start();
?>
in your webpage, you will be getting a warning stating that
Warning: session_start(): Cannot send session cookie headers already sent
To eliminate this warning it is pretty simple just add this code
<?php

ob_start();

<!–YOUR INCLUDE SCRIPT HERE–>

ob_end_clean();

?>
Thats all, issue is fixed have a nice day.

VN:F [1.5.7_846]
Rating: 3.0/10 (1 vote cast)
VN:F [1.5.7_846]
Rating: -1 (from 1 vote)

Related posts:

  1. Include files in php using include, include_once, require or require_once
  2. “Header already sent” in php error and other use of Header function in PHP

Leave a Reply

Comments (required)

Spam Protected