The human body has two main types of sweat glands:
Apocrine This type of sweat gland is prominent in areas where there are hair follicles. These sweat glands are commonly found in the anal-genital area as well as the armpits. Usually these glands do not end in pores; instead they are in the form of hair follicles. These sweat glands tend to produce a thicker fluid and when it comes into contact with bacteria they produce a foul smell.
Eccrine
These are the most common types of sweat glands and are found in most parts of the body, including the soles of your feet and the palms of your hands. The Eccrine sweat glands are responsible for moderating core temperature and prevent overheating and also help in cooling the skin.
If you suffer from hyperhidrosis, this means that the sweat glands are overly active and this cause too much sweat to be produced. Several stimuli like physical and emotional stress intensify this overreaction. Some food like caffeine or alcohol may also provoke the sweat glands to overact.