1999 gas dryer

dryer start out hot, if turned off ignighter glows for 30 seconds but doesent re-ignight the burner? will not re-ignight untill dryer is cool!is it the igniter,flame sensor,coil or one of the thermastats?

                                                                       :confused: :mad: :eek: