title: Cookie with a non-existant path
body: <p>I am trying to create a cookie. My webpage has url <code>something.com/webpage</code>.</p>
  
  <p>From JS on that page I am trying to set a cookie with path <code>/webpage/something_else</code> or <code>/other_page</code> but in both cases the cookie doesn't get set (running <code>document.cookie</code> shows <code>""</code>).</p>
  
  <p>I feel like this has to be a very simple question, but cannot find any documentation on what are the restrictions on paths and why I am not allowed to create a cookie with such paths.</p>
  
  <p>Command I am trying to run are pretty simple <code>document.cookie = "a=b; path=/webpage/abc"</code></p>
  
  <p>It feels like one of the most basic questions ever, what am I missing here?</p>
  
  <p>EDIT</p>
  
  <p>The logic behind this is that I want to send a cookie on an AJAX request to the:
  <code>something.com/webpage/abc</code> which is different to what I am on now.</p>