The invention relates to a cosmetic composition comprising, in a cosmetically acceptable medium: one or more fixing polymer(s) (i), one or more associative polymer(s) (ii) different from the fixing polymer(s), one or more antidandruff agent(s) (iii), and to a process using this composition, and to the use thereof.