Set cookie for environment if BETA param is present