It's not YOU, it's the DOOR
Ever walk into a room with some purpose in mind, only to completely forget what that purpose was? Doorways might be to trigger for these strange memory lapses.
Psychologists at the University of Notre Dame have discovered that passing through a doorway triggers what's known as an Event Boundary in the mind, separating one set of thoughts and memories from the next.
Your brain files away the thoughts you had in the previous room and prepares a blank slate for the new locale.