added auto init to cookie / added path parameter to cookie.create