%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page trimDirectiveWhitespaces="true" %>
<%@ page import="org.crosswire.utils.Sessions" %>
<%
String sessionHash = request.getParameter("sessionHash");
if (sessionHash != null) sessionHash = new String(sessionHash.getBytes("iso8859-1"), "UTF-8");
else {
for (Cookie c : request.getCookies()) {
if ("ntvmrSession".equals(c.getName())) {
sessionHash = c.getValue();
c.setMaxAge(0);
c.setPath("/");
response.addCookie(c);
}
}
}
if (sessionHash != null) {
response.setContentType("text/xml");
Sessions.getInstance().closeSession(sessionHash);
%>
Close a session
| sessionHash | session hash given from auth/session/open |