}
public void logout() throws IOException {
HttpSession session = getRequest().getSession(false);
if (session != null) {
session.invalidate();
<BUG>}
if (OpenCms.getLog(CmsJspLoginBean.class).isDebugEnabled()) {
OpenCms.getLog(CmsJspLoginBean.class).debug(
"Logout of user '"
+ getUserName()
+ "' on page "
+ getRequestContext().addSiteRoot(getRequestContext().getUri()));
</BUG>
}

}
if (login_redirect != null) {
getResponse().sendRedirect(link(login_redirect));
} else {
