title: Echo/print variables in a session array of codeigniter
body: <p>I'm trying to write a code where I use this particular line of code to store my post values in a session array</p>
  
  <pre><code>$this-&gt;session-&gt;set_userdata('newdata', $newdata);
  </code></pre>
  
  <p>The problem is, I can not seem to echo out the values inside it.</p>
  
  <p>This is how I echo them out:</p>
  
  <pre><code>&lt;?php echo $this-&gt;session-&gt;userdata('suffix'); ?&gt;
  </code></pre>
  
  <p>Is there another way to echo out sessions?</p>
  
  <p>Thanks in advance!</p>