How long of a time are we talking? Does your tilt last hours? If so, I'd say you need to stop playing when tilting. Some people can play through it until they calm down, but if it takes too long then you'll just end up losing too much to warrant sticking with it.
However, if you know you're tilting and cannot stop (say you're in a tournament) then my suggestion is to tighten up your game. Like way up. Yeah, you'll lose a few orbits of blinds, but it will give you a chance to calm down without putting you in a spot where your anger will alter your decision making.
Now, if you're tilted for days on end, I'd say you need counseling. There is a big difference between being on tilt and having anger management issues and if you're are anger management issues then nothing will help except counseling or possibly medications.