TODO: change path property of cookies for scope.