Why walking through a door makes you forget things

Why do people forget what they were going to do when they walk into a room? This video explains the "location updating effect," and how you can work it to your advantage.