title: Even after unset flash messages coming in codeigniter-3
body: <p>I am new to the codeigniter framework, i am using flash messages it's displaying correclty but even after redirecting to another page still the same flash message is displaying for this issue i was trying to fix by following <a href="https://stackoverflow.com/questions/47449755/flash-message-show-continuously-in-code-igniter">this accepted answer</a> but still i am facing with this issue only, can you please help me did i miss anything..?</p>
  <p><strong>controller.php</strong></p>
  <pre><code>$this-&gt;session-&gt;set_flashdata('msg','&lt;p style=&quot;color:green;margin-left:40%;font-size:15px;&quot;&gt;Book Added Successfully&lt;/p&gt;');
              redirect('/books');
  </code></pre>
  <p><strong>view.php</strong></p>
  <pre><code>&lt;?php echo $this-&gt;session-&gt;flashdata('msg'); unset($_SESSION['msg']);?&gt;
  </code></pre>