edit cookie response method