title: How do you 'SetCookie' for SharePoint web part?
body: <p>Newbie question.</p>
  
  <p>We are using JQuery Tabs in SharePont 2013 online based on <a href="http://jqueryui.com/accordion/#no-auto-height" rel="nofollow">http://jqueryui.com/accordion/#no-auto-height</a></p>
  
  <p>Sometimes SharePoint appends the URL and when that happens the script doesn't work.</p>
  
  <p>The Original URL looks like: <code>/a/SitePages/Step1.aspx</code>, </p>
  
  <p>and the appended URL looks like: <code>/a/_layouts/15/start.aspx#/SitePages/Step1.aspx</code></p>
  
  <p>We found a script (on Hillbilly's blog) for JQuery Tabs implemented for SharePoint, and it works great, but it appends multiple web parts to the Content Editor web part. </p>
  
  <p>We are only using one web part (Content Editor), and aren't appending additional web parts.</p>
  
  <p>Hillbilly's script is here: <a href="http://www.sharepointhillbilly.com/Lists/Posts/Post.aspx?ID=42" rel="nofollow">http://www.sharepointhillbilly.com/Lists/Posts/Post.aspx?ID=42</a>.</p>
  
  <p>I think we need to add 'SetCookie' to the basic JQuery script to make it work, but what would that look like?</p>
  
  <pre><code>  &lt;script&gt;
      $(function() {
          $( "#accordion" ).accordion({
            heightStyle: "content"
      });
    &lt;/script&gt;
  </code></pre>