DHTMLX Tree - saveSelectedItem() params

Hi, in the function saveSelectedItem() the first parameter is the name.

I use this when i have more than one tree and it works very good.



What is the function of the second parameter cookie_param?



Can i use this param to set the cookie with an item that is not selected?



If not how can i do?



Thanks



Marco C.



Second parameter can be used to specify cookie details ( most common use-case - cookie life time ) , value of second parameter will be added to cookie string.
tree.saveSelectedItem(“some”,“expires=Fri, 31-Dec-2010 23:59:59 GMT”);