@RequestMapping(value = "/logout", method = RequestMethod.GET)
	public ModelAndView logoutUser(@RequestParam String userId,

	HttpServletRequest request, HttpServletResponse response) {
		ModelAndView modelAndView = new ModelAndView();
		
		
			
			Cookie[] cookies = request.getCookies();
			for(Cookie cookie : cookies){
				cookie.setMaxAge(0);
				cookie.setValue("/");
				cookie.setPath("/");
				response.addCookie(cookie);
			}
		modelAndView.setViewName("index");

		return modelAndView;
	}