change cookie attributes to match ui attribs