Oestrogen and progestins differently prevent glutamate toxicity in cortical neurons depending on prior hormonal exposure via the induction of neural nitric oxide synthase.