added configurable cookie path option