Make session cookie path setting a bit DRYer.
Merge pull request #4282 from ADmad/3.0-sesion-cookie-path

Make session cookie path setting a bit DRYer.