Yeah, let's set the session variable and perform the check only when the cart is first created. (on first item add)
This way the check will be performed on every request, even if the product is not in the cart.