Cookie vs the dog flap: Herself's family had a minitature Daschund called Lisa. One winter, when her poor little legs were shorter than the depth of snow, she was sent out to Do Her Business, but it was discovered (the hard way) that she hadn't. Herself's mother carefully watched her when she was put outside the next time: Lisa proceeded to trot round from the back door to the front-door porch, hide herself in the porch for a while, out of the snow, then trot back unemptied.
How this was resolved is not recorded. Better luck with Cookie.