dhtmlXtree: can state be saved for multiple tree?

If we have multiple trees on a page, or perhaps several different web sites with different trees on them, how with the state management function (using cookies)? Will it retain the state of each tree, or only the most recently saved tree? Any way to support saving off & reloading the states of multiple trees?

All cookie related operation has optional parameters , first of which is name of cookie , used to storing tree state.
By using unique name you can mantain multiple tree states at same time.