session.removeAttribute(LoginConstants.RETRYCOUNT);
session.removeAttribute(PortalReservedParameters.PREFERED_LOCALE_ATTRIBUTE);
ComponentManager cm = Jetspeed.getComponentManager();
UserContentCacheManager userContentCacheManager = (UserContentCacheManager)cm.getComponent("userContentCacheManager");
userContentCacheManager.evictUserContentCache(username, session.getId());
AuditActivity audit = (AuditActivity)cm.getComponent("org.apache.jetspeed.audit.AuditActivity");
if (audit != null)
{
audit.logUserActivity(username, request.getRemoteAddr(), AuditActivity.AUTHENTICATION_SUCCESS, "Active Authentication");
}