Maytag Neptune dryer still won't heat!

My Maytag Neptune dryer stopped heating up. I replaced the igniter. It glows and lights the gas. The gas only stays lit for about 30 seconds. So, I replaced the gas valve coils. Thought this would solve the problem but it still does the same thing!