title: How to stop logged in user from clicking back button and going to login page
body: <p>So I noticed the fact that after a user logs in then clicks on the back button it returns them back to the login page. How do I make it so that it doesn't do that?? The logout version of the code I found to stop clicking the back button to go to secured page from happening doesn't seem to apply to the login problem I'm experiencing.</p>
  
  <p>Here's the code I added to constructor and it seems to have stopped logout from using back to return to secured page:</p>
  
  <pre><code>parent::__construct();
          $this-&gt;output-&gt;set_header('Expires: Sat, 26 Jul 1997 05:00:00 GMT');
          $this-&gt;output-&gt;set_header('Cache-Control: no-cache, no-store, must-revalidate, max-age=0');
          $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;load-&gt;helper('url');
          $this-&gt;load-&gt;driver('cache');
      }
  </code></pre>
  
  <p>Also added a $this->cache->clean() at logout</p>