title: JQuery cookie not updating
body: <p>I have a cookie set by default with the value of false</p>
  
  <pre><code>$.cookie('globalLang', 'false', {expires: 2, path: '/'});
  </code></pre>
  
  <p>On button click (<code>.global</code>), I want <code>globalLang</code> to update to "true".</p>
  
  <pre><code>&lt;a href="" class="global"&gt;English&lt;/a&gt;
  
  $(document).ready(function() {
    $(".global").click(function(e) {
        $.cookie("globalLang", 'true');
      });
  });
  </code></pre>
  
  <p>However, with the above approach, my cookie isn't updating, it's just creating a new one (I have two <code>globalLang</code> cookies, one with the value of false, and another with true).</p>
  
  <p>Reading the <a href="https://www.kevinleary.net/jquery-cookies-get-set-update-delete/" rel="nofollow noreferrer">documentation here</a>, I believe I'm doing it right, so unsure why it's creating another?</p>