class SecurityServiceImpl extends RemoteServiceServlet implements SecurityService {

	@Override
	public void kill(String sid) {
		try {
			// Kill the LogicalDOC session
			SessionManager.get().kill(sid);

			SessionManager.get().removeSid(getThreadLocalRequest());

			// Also kill the servlet container session, if any
			HttpSession httpSession = SessionManager.get().getServletSession(sid);
			if (httpSession != null)
				httpSession.invalidate();
		} catch (Throwable t) {
			log.warn(t.getMessage());
		}
	}

}