title: Cookie not being written in PHP even though it shows in Response header
body: <p>I'm making an AJAX call on my website to a login page and (trying to store) a cookie using setcookie(). When I see the request headers in Chrome inspector, I can see the correct Request Headers but the cookie is not being stored.</p>
  
  <p>What could I possibly be doing incorrectly? (I am not doing any output at all)</p>