title: PHP Codeigniter is showing the cache when i press the back button after I logout
body: <p>After I logout from my app, when I press the back button, all of the login options for the user is still showed on the page.</p>
  
  <p>After I login, when I press the back button it will show the logout version of the page.</p>
  
  <p>I tried setting this in my logout controller</p>
  
  <pre><code>function logout() {
      $this-&gt;output-&gt;set_header('cache-Control: no-store, no-cache, must-revalidate');
      $this-&gt;output-&gt;set_header("cache-Control: post-check=0, pre-check=0", false);
      $this-&gt;output-&gt;set_header("Pragma: no-cache");
      $this-&gt;output-&gt;set_header("Expires: Sat, 26 Jul 1997 05:00:00 GMT");
      $this-&gt;tank_auth-&gt;logout();
      redirect(subdomain() . 'home');
  }
  </code></pre>
  
  <p>But the cache is still there when i press the back button. How can i fix this?</p>
  
  <p>-----UPDATE------</p>
  
  <p>I think caching is not the problem here, I disabled caching in chrome in developer settings but my browser is still going to the secured page after logout when i press the back button.</p>
  
  <p>So caching is not the problem..</p>