what causes someone to see stars
So whether there is light entering the eye or not, any stimulation of the retina will be translated into a light show by the brain. If you see stars or flashes after sneezing, it could be from a pressure on the eye itself, or from stimulation of the nerves that have to do with sight.