We show that the geodesic period spectrum of a Riemannian 2-orbifold all of whose geodesics are closed depends, up to a constant, only on its orbifold topology and compute it. In the manifold case we recover the fact proved by Gromoll, Grove and Pries that all prime geodesics have the same length. In the appendix we partly strengthen our result in terms of conjugacy of contact forms and explain how to deduce rigidity on the real projective plane based on a systolic inequality due to Pu. (We do not use a Lusternik-Schnirelmann type theorem on the existence of at least three simple closed geodesics.)