JQuery Cookie values not maintained while moving from http to https
<p>I am creating cookie using jquery, please see below code:</p>

<pre><code>var divID = $(link).next(".open-block-holder").find("div:first").attr("id");
$('#panelOpen').val(divID);                             
$.cookie('currentPanelOpen', divID);
</code></pre>

<p>the above Cookies 'currentPanelOpen' is been created in HTTP page, now on my login click I am reloading whole page in HTTPS for security reasons. The problem is that my cookie 'currentPanelOpen' value is not maintained while it is moving to HTTPS page. (happening only for first time, once gone to https mode and again coming back to http page and doing above step works fine)</p>

<p>Surprisingly, If I directly open the page in HTTPS mode then the value is maintained and my clicked panel is opened.</p>

<p>Please suggest!</p>

<p>Thanks.</p>
