added auto init to cookie / added path parameter to cookie.create
removed unnecessary code