title: unsetting some session data in codeigniter
body: <p>I am saving some data in a session, and certain points in my websites, I am giving the user the option to removes certain parts of the session based on the array key, the array I get when I do, </p>
  
  <p><code>print_r($this-&gt;session-&gt;userdata('shortlist');</code> this leaves me the the following output, </p>
  
  <pre><code>Array ( [0] =&gt; Array ( 
      [id] =&gt; 40 
      [name] =&gt; Namey Name 
      [location] =&gt; location is a place 
      [talent] =&gt; voice over 
      [image] =&gt; ./media/uploads/headshots/width_60_249613_10150280293315435_717615434_9570480_8341358_n.jpg ) );
  </code></pre>
  
  <p>How can I remove this from my shortlist session? I have tried doing the following, but to no avail, </p>
  
  <p><code>unset($this-&gt;session-&gt;userdata('shortlist')[0]);</code></p>