What works for most people is turning it into rules you set before you sit down, so there is nothing to decide mid-session:
- Keep the poker bankroll separate from everyday money, in its own account or site balance.
- Pick a buy-in rule and stick to it. Common rules of thumb are at least 20 to 30 buy-ins for cash games and far more for tournaments, since the swings are bigger.
- Write down a move-down point: if the roll drops below X buy-ins for your stake, you drop a level, no debate.
- Set a session stop-loss in buy-ins and quit when you hit it.
- Move up only when you are above the threshold for the next stake, and take a shot with a fixed number of buy-ins.
The discipline part gets easier once the decision was made earlier, in a calmer moment.