Most people remember everything that went on in the hypnosis session.

Sometimes, if you go into a particularly deep state, you may forget what happened.

On rare occasions as part of the therapy, it is beneficial for the client to forget.  The hypnotherapist will suggest this to the client so the conscious (or analytical part of your mind) mind does not get in the way of making the positive change now.