Cooking a cooking product (2) in a cooking device having a cooking chamber (1), during a cooking period, in which the cooking product temperature is measured, is claimed. The cooking chamber temperature, at least during cooking temperature-control phase of the cooking time in the cooking chamber without the cooking product, is controlled such that the cooking chamber temperature follows a time-dependent cooking temperature target value curve. The cooking chamber is heated at least partially by heated steam and the cooking product is arranged in a bag in the cooking chamber. An independent claim is also included for a cooking device for carrying out the above method, comprising a cooking chamber for receiving the food, a steam generator (5) for heating the cooking chamber with steam, a cooking product temperature-measuring probe for measuring the cooking product temperature, and a control, which is designed to control the cooking chamber temperature in the cooking product temperature-control phase, by introducing steam into the cooking chamber, such that that the cooking product temperature follows the time-dependent cooking product temperature target value curve.