adds cookie attributes