CD40LG and infection: Anti-YFV IgM antibodies develop within a few days after infection and can generally be detected for up to three months, whereas IgG antibodies develop within days after the IgM response and can be detected for years afterward.