leave the onions to cool in the pan, then scoop into sterilised jars and seal. can be eaten straight away, but keeps in the fridge for up to 3 months.