You get lasting immunity to a viral infection, at least to a particular strain of virus, as a result of the viral infection itself. Viral infections are always intracellular. So once they enter the lymphocytes, the lymphocytes have sufficient time/opportunity to decode the outer protein coat of the viruses and to create the antibodies capable of attacking the virus. Here you have very few and specific outer proteins in case of the viruses. So the antibodies are few and specific. So immunity is lasting in viral infections.
Related Information:
There is partial immunity to different strains of a particular virus. To the extent that the composition of the protein differs, cross immunity becomes less effective.
You do not get lasting immunity to most bacterial infections. In bacterial infections, bacteria are usually extracellular. So lymphocytes have less time/opportunity to decode and create the necessary antibodies to fight the infection. So immunity is partial and short lived.
Concerning other intracellular infections: In these cases, also, the immunity is lasting. Examples:
In rickettsial infections, immunity is lasting. In chlamydia infections, it is lasting.
In typhoid fever it is lasting. Although it lasts for a few years only, and may loose its effectivity over time.
In malarial fever it is not lasting. ( Here it becomes lasting only due to repeated sub-clinical infections. These sub-clinical infections occur due to repeated infection from liver cells.) But the reason is obvious. The parasites stay in red blood cells and liver cells and not in lymphocytes. So there is less exposure to lymphocytes. But eventually in chronic infections, you get some immunity. (Except in falciparum malaria. Which does not become chronic.) In case of chronic infections, there is adjustment between host and infections, that they adjust with each other, as in case of Hepatitis B infection. So immunity is there and virus keeps low virulence.
In case of herpes zoster virus, it hides in posterior root ganglion. Away from immune system. It may be changing the outer coat like influenza virus, each time the virus again invades the nerve. As in case of HIV infection, the virus becomes part of the DNA. So it is not available for immune system. But during invasion of other cells, it is exposed to immune system. So you get some immunity.
We are still learning about these mechanisms, so answers are still being sought and debated.
Body has immunity power built within, so it can fight and inhibit all viral infections. Also the antibiotic in the drug prescribed also does the same.
Antibiotics can cure almost all bacterial infections. There are a few drugs that can treat viral infections. Many viral infections can be prevented by vaccinations. Many viral infections do not have a cure.
Viral infections have not been cured. Bacterial infections usually can be.
Both bacterial infections and viral infections can be contagious or not contagious. Some viral infections are not spread from human to human or are only rarely spread that way. TB is a contagious bacterial infection.
Other viral infections may also strike the patient, including croup, bronchitis, laryngitis, or viral pneumonia.
viral infections cousing blisters on skin of lips, nose or genitals
viral and bacterial
Viral Infections are diagnosed by the presence of the immune systems production of antibodies, viral fighting cells produced specifically for that specific virus.
Viral throat infection is airborne.
It would be more accurate to say that some kinds of viral infections do not cause a fever.
No
Immunity Is A Good Thing Because It Responds To Injuries Or Infections.