I need help trouble shooting problem

oven will light but will not stay lit does not happen all the time

whirlpool gas range #wfg540h0ab oven will light but will not stay lit does not happen all the time