had a question regarding swallowing of saliva and phlegm. when you are fasting and you happen to accumulate saliva or cough in your mouth and you are not in a position to spit it out, is it ok to swallow it? Does it invalidate your fast?

1588. Swallowing saliva does not invalidate a fast, although it may have collected in one's mouth owing to thoughts about sour things etc.