fixes #12458 , Add cookie to prevent submit twice.