Add getRequiredSessionUser to fix ac user NULL bug.