title: Setting a cookie in a different path, relative to the user's current URL path
body: <p>I'm trying to set a cookie in a users session, relative to a path different than where the user currently is. (That is, the path I want the cookie to be relative to is "/", where the user is currently in in "/_CGI". I'm trying the following, but it's not working.</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
      $(document).ready(setMobileBrowsingCookie());
  
      function setMobileBrowsingCookie()
      {
          document.cookie = "WF_BROWSING_MODE=MOBILE; path=/";
      }
  &lt;/script&gt;
  </code></pre>
  
  <p>From my Chrome developer console, I can see the cookie being set when I remove the optional <code>path=/</code> arg, but if I remove it, the cookie will be set relative to the CGI handle <code>/_CGI</code>. Is the <code>path</code> arg not being used correctly?</p>