Vinegar and salt are natural preservatives, so the onions can last for several weeks in the refrigerator.