title: Codeigniter invalid wrong email or password return message
body: <p>I made a function in CodeIgniter so users can log into my page. When a user enters a wrong email or password I want to echo an error message like </p>
  
  <p>For example Invalid email or password. But this is not working for me. I tried to do it with flashdata like this:</p>
  
  <pre><code>else {
  
  $this-&gt;$session-&gt;$set_flashdata("Invalid email or password");
  redirect("https://localhost/8800/login.php","refresh");
  }
  </code></pre>