Doorway Effect

The Doorway Effect is a widely experienced phenomenon, wherein a person passing through a doorway may forget what they were doing or thinking about previously.