Since agoraphobia is a mental problem, it is often treated with psychotherapy. The therapist attempts to work with the patient to find the causes (such as mentioned in the first post) of the phobia. They then work to get the patient to stop focusing on the negative emotions that cause them to fear going out in public.
Please copy and paste this link for more specific and detailed information:
Clinically speaking, agoraphobia does not exist independently. People who have experienced a panic attack can develop over time the characteristic symptoms of agoraphobia.
Those who lived during their existence, either long ago or recently, disappointments, insecurity, betrayal or instability in their relationships,are susceptible of agoraphobia.
Drug intervention is recommended to reduce symptoms and to help the person to regain a functional state. However, it is important that the person who is facing with these states (panic attack and panic with agoraphobia) to go through a psychotherapeutic approach for a better understanding and for finding proper solutions for managing the affects (emotions and internal states).