Example: Persist

Cookie persistence is enabled here.
Also, double-click handler expands document nodes.
Select a node and hit [F5] to refresh, to see how the active node and expansion and selection states are restored.

NOTE: if this doesn't seem to work, it's probably because the frame content is cached by the browser.
Try this example as an unframed page.

Active node: -