Kenmore Gas dryer

Hi,
I’m having trouble with my dryer, the igniter glows and the gas does ignite,
but it doesn’t stay lit. There is a constant clicking noise from the solenoids,
I believe. I pulled the flame sensor and got a .001 reading for resistance.
So the problem is in the solenoids or should I test something else.
Thank you very much.