The cookie TCA should reflect the order of the frontend table:
Currently, Lifetime and Purpose are switched: