Hotdogs can be left out of the refrigerator for up to 2 hours.
After 2 hours of the hotdogs being out at room temperature they can grow bacteria so make sure to keep the hotdogs refrigerated when not cooking them within a few hours.
Hotdogs are actually already cooked but you just usually heat them up to eat.
But still those hotdogs should be refrigerated or they can spoil.
You can also freeze the hotdogs and they will last for up to a year.
In the refrigerator the hotdogs typically last for up to a month or two.
But in the freezer the hotdogs last longer as the freezer temps prevent bacteria from growing on them.