I am using Arcgis Javascript 3.0 with TOC to make a tree structure of layers and I want to save client user settings in a cookie, to make it easy for the user to follow up next day . Is there an easy way to do that?That is my first question.My second question is that I have problem with TOC tree layers structure. I have to reload my page in order to get the TOC to work and display the layers tree structure. Can anybody tell me why?var toc = new agsjs.dijit.TOC({
map: map,
layerInfos: layerInfosTemp,
closable: true
}, 'layersGrouped');
toc.startup();