session_start(): Cannot send session cache limiter - headers > already sent
<p>I knew that this question may mark as duplicate but I can't find my answer from any duplicated post so I decided to post it in my own.</p>

<p>I have a Pages with a session. after all task, there is a button that link into this controller called Profileresult.php but even I do not have a code yet its surprising me that I got this error.</p>

<p>here is the error.</p>

<blockquote>
  <p>A PHP Error was encountered</p>
  
  <p>Severity: Warning</p>
  
  <p>Message: session_start(): Cannot send session cache limiter - headers
  already sent (output started at
  /home3/oep2732/public_html/knowyourscore/application/controllers/Profileresult.php:1)</p>
  
  <p>Filename: Session/Session.php</p>
  
  <p>Line Number: 140</p>
  
  <p>Backtrace:</p>
  
  <p>File: /home3/oep2732/public_html/knowyourscore/index.php Line: 315
  Function: require_once</p>
</blockquote>

<p>I created a controller called Profileresult.php</p>

<pre><code>&lt;?php
defined('BASEPATH') OR exit('No direct script access allowed');

class Profileresult extends CI_Controller {


    public function index()
    {
    }

}

?&gt;
</code></pre>