Burns when i pee after sex

Me and my boyfriend had sex and i was wet but not enough. Afterwards when I went to pee it burned like hell. This happened to me before once because I wasn’t wet enough or lubricated well enough. Has anyone else experienced this and what did you do to treat it? For me I took some of those cranberry pills like for UTI’s. It helped me last time, so I just took

Some a while ago too that should help.