Did both these occurrences happen during the daylight hours? If so, you may have been sitting next to a window and the glare from a passing care may have shone sun in your eyeballs momentarily.