Download this file

logout.jsp    14 lines (12 with data), 343 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@ page session="true"%>
<html>
<body>
User '<%=request.getRemoteUser()%>' has been logged out.
<% session.invalidate(); %>
<% response.sendRedirect(""); %>
<br/><br/>
<a href="test">Click here to go to test servlet</a>
</body>
</html>