homemade cocktail sauce lasts two weeks if you keep it refrigerated. thanks to the tomatoes in the ketchup and the lemon juice, the recipe has a relatively low ph, and the acidity will preserve the sauce for a considerable time.