protected boolean onAccessDenied(ServletRequest request, ServletResponse response) throws Exception {
        if (isLoginRequest(request, response)) {
            if (isLoginSubmission(request, response)) {
                if (LOGGER.isTraceEnabled()) {
                    LOGGER.trace("Login submission detected.  Attempting to execute login.");
                }
                return executeLogin(request, response);
            } else {
                if (LOGGER.isTraceEnabled()) {
                    LOGGER.trace("Login page view.");
                }
                //allow them to see the login page ;)
                return true;
            }
        } else {
            if (LOGGER.isTraceEnabled()) {
                LOGGER.trace("Attempting to access a path which requires authentication.  Forwarding to the "
                        + "Authentication url [" + getLoginUrl() + "]");
            }
            saveRequestAndRedirectToLogin(request, response);
            return false;
        }
    }
Sets the request parameter name to look for when acquiring the rememberMe boolean value.  Unless overridden
by calling this method, the default is <code>rememberMe</code>.
<p/>
RememberMe will be <code>true</code> if the parameter value equals any of those supported by
{@link WebUtils#isTrue(ServletRequest, String) WebUtils.isTrue(request,value)}, <code>false</code>
otherwise.

@param rememberMeParam the name of the request param to check for acquiring the rememberMe boolean value.
web/src/main/java/org/apache/shiro/web/filter/authc/FormAuthenticationFilter.java