The cooked onions should be stored in the refrigerator. They can last for about 4 days, so you can make them well in advance.