title: store post value in session variable
body: <p>i post value through ajax in codeigniter controller function , and trying to store value in session like this</p>
  
  <pre><code>function abc{
  $studio = $_POST['studio'];
  $trnr_type = $_POST['trnrtyp'];
  $this-&gt;session-&gt;set_userdata('studio',$studio),$this-&gt;session-&gt;set_userdata('trnr_type',$trnr_type)
  }
  </code></pre>
  
  <p>and use this value </p>
  
  <pre><code>$st = $this-&gt;session-&gt;userdata('studio');
  $tr = $this-&gt;session-&gt;userdata('trnr_type');
  </code></pre>
  
  <p>but not getting value in session variable.</p>