title: codeigniter, set_flashdata('abc', 'hi);
body: <p>I am using codeigniter on my project.</p>
  
  <p>when page refresh, </p>
  
  <p>in controller page,</p>
  
  <pre><code>$this-&gt;session-&gt;set_flashdata('abc', 'hi);
  </code></pre>
  
  <p>in view page, 
  echo </p>
  
  <pre><code>$this-&gt;session-&gt;flashdata('abc'); 
  </code></pre>
  
  <p>works fine.</p>
  
  <p>but, when ajax call, not page refresh,
  controller,</p>
  
  <pre><code> $this-&gt;session-&gt;set_flashdata('abc', 'hi);
  </code></pre>
  
  <p>view, </p>
  
  <pre><code>echo $this-&gt;session-&gt;flashdata('abc'); 
  </code></pre>
  
  <p>doesn't work.....</p>
  
  <p>echoing nothing~ -_-;
  ajax doesn't have mechanism to catch session flash data?</p>
  
  <p>any idea?</p>