title: Kill session and redirect to login page on click of logout button
body: <p>I have the following code in JSP:</p>
  
  <pre><code>&lt;%
      if(session.getAttribute("Username") == null || session.getAttribute("Username") == "_INVALID_")
      {
          response.sendRedirect("LoginPage.html");
      }
  %&gt;
  
  &lt;form&gt;
      &lt;input type="button" value="Change Account Details" onClick="location.href='ChangeDetails.jsp'"&gt;
      &lt;br&gt;&lt;/br&gt;
      &lt;input type="button" value="Add Customers" onClick="location.href='AddCustomers.jsp'"&gt;
      &lt;br&gt;&lt;/br&gt;
      &lt;input type="button" value="Manage Flights" onClick="location.href='ManageFlights.jsp'"&gt;
      &lt;br&gt;&lt;/br&gt;
      &lt;input type="button" value="Book Flights" onClick="location.href='BookFlights.jsp'"&gt;
      &lt;br&gt;&lt;/br&gt;
      &lt;input type="button" value="Log Out" onClick="location.href='LoginPage.html'"&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>When the user clicks on the log out button, I want to redirect him to the log-in page and kill the current session.  I have succeeded in the redirection part but I do not know how to kill the session.  How can this be done please?</p>