title: Warning : session_start(): Cannot send session cache limiter - headers already sent even after using session_start() and ob_start()
body: <p>I have included <code>Session_start() and ob_start()</code>; in my login page and still getting error Warning:</p>
  
  <blockquote>
    <p>session_start(): Cannot send session cache limiter - headers already
    sent (output started at ) on line 3.</p>
  </blockquote>
  
  <p>I don't know what is the problem.</p>
  
  <p>I tried placing <code>ob_start</code> on first line and on second line same with the <code>Session_start.</code></p>
  
  <p>Here is my code:</p>
  
  <pre><code> &lt;?php
  session_start();
  ob_start();
  
  error_reporting(0);
  
  if(!empty($_SESSION["admin_prince"])){
      header("location:../index.php"); 
  }
  include '../connection.php';
  
   ?&gt;
  </code></pre>