I would just set the session variable, and preferably do the check on cart creation.