Save State Of large tree

i have a tree which becomes great in size.now i have to navigate away from the page and when i come back to the page i want the tree to be in the same state as it was when i navigated away from the page.i tried to use the saveState method of the tree but it falied as the size of the cookie is fixed and the tree that i have is quite large.I then tried to use the serilazetoJSON method of the tree and it is giving me the problem because of the size.The size of the json becomes so large that it is becoming difficult for me to maintain and i do not want to go to the server for storing the same. Please let me know if there is some way of acheiving this functionality or can i get a minimised JSON object somehow to make this work?

You may use saveOpenStates and loadOpenStates to save the open state of the tree. For selected item - saveSelectedItem and restoreSelectedItem.

dhtmlx.com/docs/products/dht … okies.html