Most not long at all.
HPV, HIV are fragile viruses and soon die outside the human body,how long depends on conditions and luck, but usually not long.
The Bacterial thugs are pretty much the same, soon die off, how long.... could be seconds,minutes or an hour or two at the longest....it varies.
The real bastard of the virus world is Hep B, that can survive for up to 2 weeks outside the human body .However if you're punting you should have been vaccinated for Hep B, like most sex workers. See the clinic if you haven't.
Hope I got this right, feel free to call me a fool if I didn't.