Only set cookies when needed. The cookies are not set until there is a reason to set them.