I know some people use the technique of repeating the name of the person they just met several times in the course of the conversation - "hi Jane, nice to meet you! So tell me, Jane, how do you like this party? Well, Jane, it was really nice to meet you", etc. I feel weird doing that, and I'm not entirely sure that would even hammer it into my head enough for the next time I saw the person. The last guy I dated had ADD and had to use that technique to remember names. It creeped me out at first, when he was doing it to me, because it seemed like he was trying to use some kind of slick manipulation technique he read in some kind of "how to score with women" book. It does remind me of something a salesman would use to try to gain a potential customer's trust, but that's just me, a lot of people do seem to like when people say their name a lot in conversation.
If I'm in a work situation, sometimes I will write down names and identifying information (department, job title, physical traits) on a notepad and keep it in my bag. In social situations, I usually just hope that I don't need to use their name and listen for someone else to call them. Once in awhile, I will feel ok enough to say "I'm sorry, I am so terrible with names, what was your name, again?"