In both apocrine and eccrine sweat glands, the sweat is originally produced in the gland's coil, where it is isotonic with the blood plasma there.
Both eccrine and apocrine sweat glands participate in thermal (thermoregulatory) sweating, which is directly controlled by the hypothalamus.