You may never be able to eliminate mold and mildew completely if you have a shady area with a lot of moisture present.
However, you can imporve your chances by using a synthetic stain, such as DEFY Extreme Wood Stain, instead of an oil-based product. Oils are a food source that the mold and mildew will feed on.