Lens flares are created by pointing the camera directly at a light source. They can also be simulated digitally. Outer space movies (especially the JJ Abrams Star Trek films) are infamous for having lots of lens flares. Here are some examples:
Courtesy Overhead Productions
Create your own unique website with customizable templates.