I made the mistake of allowing my dog to jump up on me while I'm in my chair whenever she felt like it.
Just her front legs. I had to correct my behavior to encourage her to stop. I found the most important thing was for me to be aware of when she was approaching. It's kind of hard to deal with a problem that you don't see coming, so I trained myself to be more aware of her approach. Then I put my hand out facing her (like a "Stop! In the name of love" gesture) and said "ah-ah". When I had her attention, I'd say, "Sit" and she did. Then I rewarded her with verbal praise and a pet. From there, sometimes I tell her to go lay down, or to go away (a command they know) or "Get your Cuz" or "jump up", which gives them permission to jump up on me. But she has learned that if she wants to come up, she MUST come up to that position and sit first. I always give her a command at that point to avoid her sad stare while she waits for me to tell her to jump up. 