protected boolean rememberMeRequested(HttpServletRequest request, String parameter) {
    """
	Allows customization of whether a remember-me login has been requested. The default
	is to return true if <tt>alwaysRemember</tt> is set or the configured parameter
	name has been included in the request and is set to the value "true".
	
	@param request the request submitted from an interactive login, which may include
	additional information indicating that a persistent login is desired.
	@param parameter the configured remember-me parameter name.
	
	@return true if the request includes information indicating that a persistent login
	has been requested.
    """
		if (alwaysRemember) {
			return true;
		}

		String paramValue = request.getParameter(parameter);

		if (paramValue != null) {
			if (paramValue.equalsIgnoreCase("true") || paramValue.equalsIgnoreCase("on")
					|| paramValue.equalsIgnoreCase("yes") || paramValue.equals("1")) {
				return true;
			}
		}

		if (logger.isDebugEnabled()) {
			logger.debug("Did not send remember-me cookie (principal did not set parameter '"
					+ parameter + "')");
		}

		return false;
	}
protected boolean rememberMeRequested(HttpServletRequest request, String parameter) {
		if (alwaysRemember) {
			return true;
		}

		String paramValue = request.getParameter(parameter);

		if (paramValue != null) {
			if (paramValue.equalsIgnoreCase("true") || paramValue.equalsIgnoreCase("on")
					|| paramValue.equalsIgnoreCase("yes") || paramValue.equals("1")) {
				return true;
			}
		}

		if (logger.isDebugEnabled()) {
			logger.debug("Did not send remember-me cookie (principal did not set parameter '"
					+ parameter + "')");
		}

		return false;
	}
protected boolean rememberMeRequested ( HttpServletRequest request , String parameter ) { if ( alwaysRemember ) { return true ; } String paramValue = request . getParameter ( parameter ) ; if ( paramValue != null ) { if ( paramValue . equalsIgnoreCase ( "true" ) || paramValue . equalsIgnoreCase ( "on" ) || paramValue . equalsIgnoreCase ( "yes" ) || paramValue . equals ( "1" ) ) { return true ; } } if ( logger . isDebugEnabled ( ) ) { logger . debug ( "Did not send remember-me cookie (principal did not set parameter '" + parameter + "')" ) ; } return false ; }
Allows customization of whether a remember-me login has been requested. The default
is to return true if <tt>alwaysRemember</tt> is set or the configured parameter
name has been included in the request and is set to the value "true".

@param request the request submitted from an interactive login, which may include
additional information indicating that a persistent login is desired.
@param parameter the configured remember-me parameter name.

@return true if the request includes information indicating that a persistent login
has been requested.
Allows customization of whether a remember - me login has been requested . The default is to return true if <tt > alwaysRemember< / tt > is set or the configured parameter name has been included in the request and is set to the value true .