%@page contentType="text/html"%>
<%@page language="java" session="true" %>
JSP Page
<%
// If we invalidate teh session, all pages that require us
// to be logged in will bail and forward us to the login page.
HttpSession httpSession = request.getSession();
httpSession.invalidate();
%>
<% // Back to the login page. %>