Glass doesn't get hot in the sun the way, say, a metal surface does, because most of the light is transmitted rather than absorbed. You can test this easily on your car on a sunny day. The metal quite possibly will get so hot you can't put your hand on it without getting burned, but the glass will not. Objects which absorb light re-radiate much of that energy in the infrared range, i.e., as heat.
Glass does not transmit infrared radiation well, which is why a greenhouse, or the interior of your car, gets hot in sunlight. The light wavelength spectrum is transmitted through the glass, heats up whatever non-transmitting surface is inside, and that resultant infrared is trapped, thereby heating everything inside.