- Subject subject = new Subject();
- try {
- new ArgeoLoginContext(KernelHeader.LOGIN_CONTEXT_USER,
- subject).logout();
- new ArgeoLoginContext(KernelHeader.LOGIN_CONTEXT_ANONYMOUS,
- subject).login();
- } catch (LoginException e1) {
- throw new ArgeoException("Cannot authenticate anonymous",
- e1);
- }
- // SecurityContextHolder.getContext().setAuthentication(null);
- // HttpSession httpSession = RWT.getRequest().getSession();
- // httpSession.removeAttribute(SPRING_SECURITY_CONTEXT_KEY);
- close();
- dispose();
- cmsSession.authChange();