The photoinduced effect, at different temperatures, on layered perovskite manganite La1.2Sr1.8Mn1.8Co0.2O7 thin film deposited on a SrTiO3(100) substrate has been studied using a He-Ne laser (632.8 nm) with the power of output 25 mW at low temperatures. The electrical transport and magnetic properties of the film are investigated systematically in the temperature region from 20 to 300 K. The resistance shows a significant decrease at low temperatures (T<90 K) under laser irradiation, which can be interpreted in terms of the spin-state transition of Co3+ ions. The magnetic field combined with the laser is also used to detect the photoinduced effect of the spin-glass state. The time dependence of the metastable system under several applied fields was also discussed. The system has the ability to keep a persistent memory of the magnetic history imprinted in its zero-field resistance.