blob: b5ee7daa3bc10d2fd3705d19e5f446612c1c4a2e [file] [log] [blame]
<%@page import="com.ecyrd.jspwiki.auth.login.CookieAuthenticationLoginModule"%>
<%@page import="com.ecyrd.jspwiki.WikiEngine" %>
<%@page import="com.ecyrd.jspwiki.auth.login.CookieAssertionLoginModule" %>
<%
WikiEngine wiki = WikiEngine.getInstance( getServletConfig() );
wiki.getAuthenticationManager().logout( request );
// Clear the user cookie
CookieAssertionLoginModule.clearUserCookie( response );
// Delete the login cookie
CookieAuthenticationLoginModule.clearLoginCookie( wiki, request, response );
// Redirect to the webroot
// TODO: Should redirect to a "goodbye" -page?
response.sendRedirect(".");
%>