We show that the cohomology for some 2-generated selfinjective algebras is finitely generated. This applies in particular to the algebras A5(β) for β=0 in the classification of connected Hopf algebras of dimension p3 over characteristic p by Nguyen-Wang-Wang.