A cosmetic agent for the temporary styling of keratinic fibers, in particular human hair, containing, in a cosmetic support, with respect to its total weight,a) from about 0.1% to about 2.0% by weight of chitosan or chitosan derivativeb) from about 0.5% to about 7.0% by weight of polyimide, its use and a method employing this agent.