how to keep track of accordion(in masterpage) open status after page navigation?
<p>i am using jquery accordion as a menu in asp.net Masterpage.</p>

<p>This is jquery</p>

<pre><code>$(document).ready(function() {
    $(".header").click(function() {
        $(this).toggleClass("display");
        $(this).next("div .menu_body").slideToggle(500);
    });
});
</code></pre>

<p>This is html.</p>

<pre><code>  &lt;div id="MasterPage_Menu" class="menu_list"&gt;
  &lt;p class="header"&gt;Header-1&lt;/p&gt;
    &lt;div class="menu_body"&gt;
        &lt;a href="page1.aspx"&gt;Link-1&lt;/a&gt;
    &lt;/div&gt;
  &lt;p class="header"&gt;Header-2&lt;/p&gt;
    &lt;div class="menu_body"&gt;
        &lt;a href="page2.aspx"&gt;Link-2&lt;/a&gt;
    &lt;/div&gt;
  &lt;p class="header"&gt;Header-3&lt;/p&gt;
    &lt;div class="menu_body"&gt;
        &lt;a href="page3.aspx"&gt;Link-3&lt;/a&gt;
   &lt;/div&gt;
  &lt;/div&gt;
</code></pre>

<p>According the code above, when the header is clicked, the content (menu_body) will be slided toggle.
The menu_body is hide at default, when the user click on the header, the menu_body is visible. </p>

<p><strong>Example Problem:</strong> eg: 2 menu_body is visible, when i click on href = "page1.aspx", the page will be navigated to page2.aspx but the accordion will return to be default which all the menu_body is hidden.</p>

<p>Since I am using this accordion in master page, i fail to store the value to keep track of the accordion menu_body status into the hiddenfield when the page is navigated away. The value in hiddenfield will be reset. </p>

<p>I am thinking to store this in session, but in client page, it doesn't allow us to store value into the session.</p>

<p>Any solution for this?</p>
