OPENAM-7920 Set cookies only for the appropriate domains
AME-6618 CR-6902 Remove legacy persistent cookie implementation
Fix for AME-197