Refrigeration is necessary for hard boiled eggs if they eggs are not to be consumed within a few hours. Hard-cooked eggs in the shell can be refrigerated up to one week. They last much longer at both room temp and refrigerated, if they aren't cooked.