Chris Wallace said it right in the thread here at Card Chat when he says that "you have to forget about the last hand and focus on just playing the current hand the best you can". If you can't do that then I 'd suggest asking yourself why you are so emotionally attached to something that already happened and you have absolutely no chance of changing now.
I would also suggest you find a proven strategy(if you already haven't) that goes with how you play poker (ie tight, loose etc) from either a book or advice from a coach or proven winner so when things go bad, you have something to rely on to validate your reasoning for your move and the outcome so you can avoid tilt.
If its a cash game I just use
odds, a tourn then its a little more complicated with stack size at the table, my stack size to the blinds, payouts, and etc. My point is find something that you can say, "They got lucky on me or I made a mistake and they caught me so lets play better next hand" without the emotion.
But if you still tilt, you could take time off, take a break or just and do other things. If I was playing a cash game at a casino and somebody got lucky on me and it upset me then I would just get up and walk away and do my best not to say anything to anyone on the way out.
And that's happened to me after driving 2+ hours one way to a casino after playing like only 5
hands!!!!! But driving home down 1 buyin was always, always better than going home down 2-3 or more buyins, lol!!
My point is once you understand there are CONSEQUENCES for playing tilted like destroying your win rate, giving away money or UTTERLY DESTROYING YOUR POKER BANKROLL THAT you actually worked hard to build then tilt might go away a little faster, just a little, lol.
GL getting over your tilt.