The glass sheet in the solar cooker creates a greenhouse effect. Glass sheet has a property that allows the infra-red rays of shorter wavelength from the Sun to get in the device but does not allow the infra-red rays of longer wavelength to leave the solar heating device. Therefore, heat energy is trapped inside the heating device.