title: Destroy a specific session in codeigniter
body: <p>I have a codeigniter application that I am using the Cart class to make an e-commerce store. </p>
  
  <p>I am also using Codeigniter-Auth (a library) to make accounts on this system. I have noticed when I log out while testing the application, the session data for the shopping cart is also destroyed. </p>
  
  <p>I noticed in the library this is how it logs the users in: </p>
  
  <pre><code>$data = array(
    'id' =&gt; $row-&gt;id,
    'name' =&gt; $row-&gt;name,
    'email' =&gt; $row-&gt;email,
    'loggedin' =&gt; TRUE
  );
  
  $this-&gt;CI-&gt;session-&gt;set_userdata($data);
  </code></pre>
  
  <p>And this is how it logs the user out: </p>
  
  <pre><code>return $this-&gt;CI-&gt;session-&gt;sess_destroy();
  </code></pre>
  
  <p>How do I tell codeigniter to only destroy the user session and not every session in the system?</p>