title: Check session is set, codeigniter
body: <p>I have a upload script which post upload lets the user edit the content title for a period of time. It sets the following in the ci_sessions user_data column in the db:</p>
  
  <pre><code>array (
    'user_data' =&gt; '',
    'edit' =&gt; 
    array (
      'image_id' =&gt; 'HF',
      'session_id' =&gt; '783c15b057bcd9c19d3fd82f367ee55d',
    ),
  )
  </code></pre>
  
  <p>The problem is my session CHECK code can't find the session:</p>
  
  <pre><code>&lt;?php if ($this-&gt;session-&gt;userdata('edit') !== FALSE) : ?&gt; 
  &lt;?php echo '&lt;!-- session found --&gt;'; ?&gt;
      &lt;?php $session_info = $this-&gt;session-&gt;userdata('edit'); ?&gt;
      &lt;?php $ids_array = explode(",", $session_info['image_id']); ?&gt;
      &lt;?php foreach ($ids_array as $id): ?&gt;
      &lt;?php 
      if ($id == $alpha_id 
      &amp;&amp; 
      $session_info['session_id'] == $this-&gt;session-&gt;userdata('session_id')) :
      ?&gt; 
  </code></pre>
  
  <p>The echo on line 2 of that block never gets outputted.
  Can anyone see what I'm doing wrong? thanks</p>
  
  <p>heres my controller <a href="http://pastebin.com/aXeRn1VN" rel="nofollow">http://pastebin.com/aXeRn1VN</a></p>