title: cannot destroy session in jsp
body: <p>iam using this in my logout page:</p>
  
  <pre><code>session.invalidate();
  response.sendRedirect("login.jsp");
  </code></pre>
  
  <p>and then this on every page to check if the session is being set or not</p>
  
  <pre><code>session.getAttribute("username");
  HttpSession session1 = request.getSession(false);
  
  if(session1== null )
  {%&gt;
      &lt;jsp:forward page="login.jsp"/&gt;
  &lt;% 
  }
  else
  {%&gt;
        load the content of the page
  </code></pre>
  
  <p>it get logout successfully...
  but when i press the back button on the browser it get back to the page... i was last on.
  Where iam wrong and what can be done  </p>