Separation anxiety can be treated by the owner showing leadership to the dog in a canine manner. Owners overindulge their dogs regardless of whether they are dominant or timid. Owners provide food, shelter and entertainment, but no leadership.
The owner should consider separation anxiety in their dog when they're at home. Dogs are loved by us because they bring us joy, including their companionship. If your dog is prone to separation anxiety, you should practice it while you're at home.
You should not force your dog to stick to you like glue. You can make him sit in a different room or place food in the backyard. You can also crate your dog when you're not home or at night to monitor his behavior.
If used properly, the crate can be a great tool for training. Dogs can perceive the crate as an unpleasant, sad place if owners leave it unattended. This is a common practice. You can make an easy change and acclimate your dog so that it sees the crate as a safe place.
The crate should be placed somewhere that isn't in the way of people traffic so that the dog doesn't feel lonely. Keep creating him until he considers the crate his shelter and even allows himself to enter it.
Dogs with behavioral issues aren't happy dogs. Dogs with behavioral problems are just like us. They experience stress through their behavior and physical conditions. This cycle must be broken in order for your dog to resign his position as leader. He can then relax knowing that you are safe and that his pack is safe.