Oh I've done this so many times thinking I will remember. I feel for ya.
I write my dreams down when I get up and go to the bathroom, or when I wake up in the morning. I know, it's bad... don't do my technique.