when setting cookie value, sends cookie to client and sets value in
current request