A subset of primed CD4+ and CD8+ T cells differentiates into long-acting memory cells after the infection subsides. Here, CD4 is linked to infection.