request.getSession().removeAttribute("userSession"); request.getSession().invalidate(); return new ModelAndView("index");