Reexamination of ionospheric photochemistry