Using cookie for aai_error