Cortisol, a hormone secreted by the adrenal glands in times of stress, may help people cope when it is given before an unpleasant situation.