Fixed cookie domain being set to cookie path if a cookie path is provided.