title: Codeigniter : flashdata between redirect and loading view
body: <p>In controller signup</p>
  
  <pre><code>    function signup() { 
       if('user already exists') {
       $this-&gt;session-&gt;flashdata('flsh_msg', 'You have already signed up using goole. you will be redirected to home page.');
      redirect('signup/signup/show_message'); 
       }
   }
  </code></pre>
  
  <p>Show message in same controller, just to show view</p>
  
  <pre><code> function show_message()
    {
        $this-&gt;load-&gt;view('header/header');
        $this-&gt;load-&gt;view('signup/signup_message');
        $this-&gt;load-&gt;view('footer/footer');
    }
  </code></pre>
  
  <p>In View file :</p>
  
  <pre><code>&lt;div class="alert alert-success"&gt;
      &lt;?php echo $this-&gt;session-&gt;flashdata('flsh_msg'); ?&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I am not able to show "You have already signed up using goole. you will be redirected to home page." message on view, I have tested keep_flashdata and set_flashdata.</p>
  
  <p>Is there any other method to do this? How can pass flash message between redirecting and then calling a view</p>