title: Logout ,Session Expiration
body: <p>Hi I am developing a website using codeigniter,php  that requires secure login, The problem arises when I logout, &amp;  firstly I destroy the session but trouble is, when I click back on the browser it is displaying the Login page again.. Thanks for answers in advance</p>
  
  <p>Following is my index function &amp;<br>
  website is my controller .</p>
  
  <pre><code>public function index()
  {   
      if(logged_in() )
      {
          redirect('/website/dashboard'); 
      }
  
      else
      {
          redirect('/website/login');
      }
  
  
  }
  </code></pre>
  
  <p>code works for me.. But when i logout from site &amp; press back button i am seeing my dashboard again...</p>
  
  <p>my log out function : </p>
  
  <pre><code>public function logout($redirect = false)
  {
  
  
      $this-&gt;CI-&gt;session-&gt;sess_destroy();
      if($redirect)
      {
          $this-&gt;CI-&gt;load-&gt;helper('url');
          redirect($redirect, 'refresh');
      }
  }
  </code></pre>