cookie processing