When shooting directly into the sun, it is very important to choose the correct viewpoint. The correct viewpoint will eliminate the chance of glare. When choosing your viewpoint, pay special attention to lens flares. You may need to make slight adjustments in your position to eliminate the flares.
To produce a great image when shooting directly into the sun, include the horizon and other elements in the foreground into the image. This can create beautiful pictures because it will create wonderful silhouettes. Including these things will add detail and depth to an image; especially when done against a beautiful sunrise or sunset. If you include the horizon in the image, make sure the camera is straight. Many photographers overlook this key detail.