A composition is provided comprising three liquids which are separately maintained prior to forming an admixture during delivery to a surface to be treated, whereupon the admixture generates a heated foam sufficient for cleaning efficacy and stability. A first liquid preferably includes a hypohalite, or a hypohalite generating agent, a second liquid preferably includes a peroxygen agent and a third liquid includes a reducing agent, such as a thiosulfate. The first liquid is thickened to a specified rheology, resulting in the generation of a highly effective foam. As the liquids are initially separated, they can be maintained in an environment free of reactants and otherwise conducive to their activity and stability up to the time of use. When the liquids are allowed to mix, for example, by simultaneously pouring into a drain, the hypohalite and peroxygen react to liberate oxygen gas, while the hypohalite and thiosulfate react to generate heat. As foam generation occurs, the escaping gas contacts surfactant in the solution, and creates foam which expands to completely fill the drain pipe. The expanded foam is hot as a consequence of athe exothermic reaction, and further contains an excess of the hypohalite, both of which act to clean the drain.