Sex steroids acting via ER or AR elicit both direct and indirect effects on CD4+ and CD8+ T cell function in diverse models of infection, autoimmunity and cancer. This evidence concerns the gene CD8A and infection.