title: CodeIgniter Session will not be saved
body: <p>Experts,</p>
  
  <p>i have a little Problem with my sessions. I want to save my login data into the session like this:</p>
  
  <p><em><strong>checklogin Controller</em></strong></p>
  
  <pre><code>$user = $this-&gt;user_model-&gt;user($email, $password);
  $user["logged_in"] = TRUE;
  var_dump($this-&gt;session-&gt;set_userdata($user)); // return NULL? is this correct?
  var_dump($this-&gt;session-&gt;all_userdata()); //return the correct data
  </code></pre>
  
  <p>Now the Session is saved up to a redirect.</p>
  
  <p><em><strong>Other Controller</em></strong><br/></p>
  
  <pre><code>var_dump($this-&gt;session-&gt;all_userdata()); // return session_id,… and a empty user_data array
  </code></pre>
  
  <p>I think I have the same Problem with the Shopping Cart Class.</p>
  
  <p>Can anyone help?</p>