Sialorrhea is a condition in which excessive saliva production is constant, long-lasting, and affects the patient's quality of life; ptyalism is a hypersalivation that occurs physiologically and naturally in situations of danger, fear, or panic.
Ptyalism occurs because of a psychological stimulus, it is temporary and disappears without a trace once the psychological trigger disappears.