For me it depends on where i am playing...
If its live games - i usually manage tilt pretty well, brush off beats and as long as i am playing solid and getting my money in good i am ok - but if i feel it coming undone i get up and go take a break to calm myself and get my head right, or i just quit altogether for the day.
Online - sometimes for whatever reason i lose my mind - let it all out and go on a Phil Hellmuthian style rant...then im immediately fine again and i go back to playing.
One thing has helped me above most others...i just keep telling myself if i got the money in good - to be happy. Not much more you could ask for.
If you get KK and lose to JJ on the bubble for your tournament life...sure that sucks, it will hit you pretty hard - but overall, you got it in as a 80% favorite...i will take those
odds everyday all day long. AK vs Ax - 75% to win the hand (same with any other heads up dominant
hands) - doesnt get much better than that. You gotta be happy when you are almost always getting your money in good - it is the entire point of th game annnnnd, will make you a winning long term player.