update cookie value