Add cookie processing