10 year old Whirlpool gas dryer

Dryer heats up and then cools down. Does not dry clothes. Looking underneath, the filiment glows red and initiatially the gas lights and runs. After 10-15 minutes, it shuts off. The filaments glows but it does fire up again. I cleaned all the lint out of the back of the dryer.