context.setAttribute("rememberMeEnabled", rememberMe);
if (!rememberMeEnabled) {
ProviderManager provider = (ProviderManager) ctx.getBean("_authenticationManager");
for (Iterator it = provider.getProviders().iterator(); it.hasNext();) {
AuthenticationProvider authProvider = (AuthenticationProvider) it.next();
if (authProvider instanceof RememberMeAuthenticationProvider) {
provider.getProviders().remove(authProvider);
}
}
}