Properly stored cooked ziti will last 3-5 days in the refrigerator. How long can cooked ziti remain at room temperature? Bacteria grow rapidly at temperatures from 40°F to 140°F. If left at room temperature for more than 2 hours, cooked ziti should be discarded.