The gl ass sheet in the solar cooker creates a greenhouse effect. Glass sheet has a property that allows the infrared rays of shorter wavelength from the sun to get in the device but does not allow the infrared rays of longer wavelength to leave the solar heating device.