Pepper, our cocker, grew out of it within her second year, but she occasionally slipped up as an adult. Autumn still occasionally pees when her favorite people come over or when we are in strange places. She's 6. We would just tell her to go outside when people come over. We'd answer the door and I'd tell her firmly to go out and potty before she could meet and greet. If it was a stranger at the door she had to stay in the kitchen.