if the dict has the value cookie, set a cookie with dict['cookie'][0] as Name and ['cookie'][1] as value