Oh, ones with forcefields instead of doors? At first I thought you mean ones with doors with electronic locks which unlock themselves if the power fails, which is more than a little stupid.
In one episode of Voyager they set up proper, solid cells in a cargo bay, but they also could have decompressed the bay as well, so prisoners can't get out and breathe.
Alternatively, if you are going to forcefield route, you can also have forcefields in the ceiling using the same power, so they fail when the doors do. These ones are holding back the killer bees or the lava or some other prisoner killing thing.