You are usually contagious for as long as you have the virus, even when you are asymptomatic or do not have any symptoms. For instance, if your genital warts have vanished you can still spread HPV that caused them if your body hasn't eliminated the virus. However, you're no longer contagious once your immune system clears the virus.