configure custom cookie