different behavior of set cookie