title: Codeigniter 3 - Access Session from Outside Codeigniter Installation
body: <p>I can't seem to get session data passed from my codeigniter application back to a script in my includes folder. From what I've read on other answers, I need to set my <code>session_id()</code> to be able to rejoin a session with <code>session_start()</code>. </p>
  
  <pre><code>ROOT /
       .. /application
       .. /system
       .. /includes
          .. /Events.php &lt;- I need access from here
  </code></pre>
  
  <p>Theoretically the code below should work, at least according to other answers, because the new CI session library passes on to native sessions. </p>
  
  <pre><code>session_id($_COOKIE['ci_session']);
  session_start();
  var_dump($_SESSION); // returns null
  </code></pre>
  
  <p>Am I misunderstanding sessions?</p>