Codigniter error while saving sessions
<p>I am using a login script via ajax in Codigniter and an error:</p>

<blockquote>
  <p>An error occured please try again later</p>
</blockquote>

<p>pops up. These are the two lines removal of any of these removes the error but I need both of these to execute: </p>

<pre><code>$this-&gt;session-&gt;set_userdata($user_data);
$this-&gt;session-&gt;set_userdata('permissions', $permissions_from_db);
</code></pre>

<p>Here <code>$userdata</code> is an array having users info retrieved from db and <code>$permissions_from_db</code> is another array which also have data retrieved from db.
does setting sessions one after another causing problem? or does there is an upper limit on number of items I can store as session?</p>
