dryer heats initially then heat turns off

the ignitor warms and gas lights up for a short time, dryer continues to run but flame does not stay lit, is this simply replacng the coils to solve the problem or do I need flame sensor and hi limit t-stat?