<% if( request.getParameter("logout") != null ) { request.getSession().invalidate(); response.sendRedirect("Login.jsp"); return; } String username = (String) session.getAttribute("username"); if( username == null ) { response.sendRedirect("Login.jsp"); return; } %> Members Logout

<%= username %>, welcome to the member-only area