	public void doFilter(ServletRequest request, ServletResponse response,
			FilterChain chain) throws IOException, ServletException {
		HttpServletRequest httpRequest = (HttpServletRequest) request;
		HttpServletResponse httpResponse = (HttpServletResponse) response;
		HttpSession session = httpRequest.getSession();
		User user = (User) session.getAttribute("user");
		if (user == null) {
			String sequenceInCookie = HttpUtils.getCookie(httpRequest, "seq");
			if (sequenceInCookie == null) {
				httpResponse.sendRedirect("/pilot/login/login.html");
				return;
			}
			Integer userSequence = Integer.valueOf(sequenceInCookie);
			user = userDao.getUserBySequence(userSequence);
			session.setAttribute("user", user);
		}
		System.out.println("user: " + user);
		chain.doFilter(request, response);
	}

	public void doFilter(ServletRequest request, ServletResponse response,
			FilterChain chain) throws IOException, ServletException {
		HttpServletRequest httpRequest = (HttpServletRequest) request;
		HttpServletResponse httpResponse = (HttpServletResponse) response;
		HttpSession session = httpRequest.getSession();
		User user = (User) session.getAttribute("user");
		if (user == null) {
			String sequenceInCookie = HttpUtils.getCookie(httpRequest, "seq");
			if (sequenceInCookie == null) {
				httpResponse.sendRedirect("/pilot/login/login.html");
				return;
			}
			Integer userSequence = Integer.valueOf(sequenceInCookie);
			user = userDao.getUserBySequence(userSequence);
			session.setAttribute("user", user);
		}
		chain.doFilter(request, response);
	}
