title: session update in codeigniter
body: <p>hi i would like to ask if it is possible to update the session data saved in the database in codeigniter,, for example. i have a session userdata(roleID,name,logged_in), so that when someone will login, ill just call the <code>$data['name'] = $this-&gt;session-&gt;userdata('name');</code> and echo it in my header view as <code>&lt;?php echo $name; ?&gt;</code>,, the problem is when a user will update his firstname or lastname, and when i do this</p>
  
  <pre><code>$fname = $this-&gt;input-&gt;post('fname');
  $lname = $this-&gt;input-&gt;post('lname');
  
  $fullname = $fname." ".$lname;
  $this-&gt;session-&gt;unset_userdata('name');
  $this-&gt;session-&gt;set_userdata('name',$fullname);
  </code></pre>
  
  <p>it doesnt work..</p>
  
  <p><strong>//EDIT</strong>
  WORKING RIGHT NOW... JUST TYPO AND SYNTAX ERRROR</p>