Modified cookie-setting translation