How to store an accordion menu's state (open or closed) using Javascript or PHP
<p>I would imagine it would be done with a cookie or session, but what is the best way to remember an accordion menu's state if a user opens an item and leaves? How can I have "open" items in that state when the user comes back to the site?</p>

<p>I've just upgraded my custom CMS with a new interface, and the new menu needs something like this or usability will suffer greatly.</p>

<p>I don't need specifics, just how you would normally do it.</p>

<p>Thanks!</p>
