Add response listener for writing WordPress login cookie's needs.