Agoraphobics are afraid of becoming panicky in situations from which they cannot immediately extricate themselves. The specific circumstances of feeling trapped differ from one person to another. The proper treatment of phobias is not easy at best, and getting well depends as much on morale as on anything else. The patient has to keep trying long enough to succeed, and two things must be learned: 1) to confront the situations that cause fear and to understand that escape is always possible, in one way or another; and 2) the feeling of panic itself can be mastered. If it cannot be prevented from coming, there are means by which it can be driven away.
Read the entire article here: An Overview of Agoraphobia and its Treatment