Breaking bad habits

I am looking for some guidance on how to break bad habits for good. I had a private session about how to break a bad habit that I have, and I was sort of told that I can live with the habit and be okay with it, but I really don’t want to do that. I want to overcome it and stop it. I need help!