And NEVER put your foot back into your boot if you have taken it out of the boot, walked around a little and put the boot back on your foot without changing socks.
Because your boot becomes a petre dish with the warmth and moisture and the cleanest you make your foot, the longer your boot will stay fresh and not stink.
Also cotton socks do the trick for me. Synthetics seem to keep the foot from "breathing" IMHO.
Also lay your boots on their sides after you take them off. The air can circulate much better through them and dries them out faster and more thoroughly.