public void doFilter(ServletRequest request, ServletResponse response,
			FilterChain chain) throws IOException, ServletException {
		HttpServletRequest httpRequest = (HttpServletRequest) request;
		httpRequest.getSession();
		if (httpRequest.getSession().getAttribute("patron") == null) {
			httpRequest.setAttribute("loggedIn", false);
		}

		// pass the request along the filter chain
		chain.doFilter(request, response);
	}