title: Codeigniter: Best practice for View accessing session
body: <p>From what I've read, the View should be as simple as possible.</p>
  
  <p>Is it good practice to access session variables in the view?</p>
  
  <p>ie.</p>
  
  <pre><code>// in the view
  &lt;?php if ($this-&gt;session-&gt;userdata('is_logged_in') : ?&gt;
    // stuff
  
  &lt;?php endif; ?&gt;
  </code></pre>