Cookie dsl, close #899