change cookie class document