title: How to stop the browser from going back to viewed pages after logout action?
body: <p>I have Logout Link in the home page and on clicking that link I am redirecting user to the login page.</p>
  
  <p>When user click on back in browser it redirecting to home page after loutout. </p>
  
  <p>How to stop this.</p>
  
  <p>I have tried using javascript code at the header of login page.</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
              function noBack() { window.history.forward() }
              noBack();
              window.onload = noBack;
              window.onpageshow = function (evt) { if (evt.persisted) noBack() }
              window.onunload = function () { void (0) }
  &lt;/script&gt;
  </code></pre>
  
  <p>Help me out here.</p>