Ajax POST Cookie Not Set

Ajax POST Cookie Not Set

I am trying to perform a POST operation to a page within the same domain that I set my Cookie in. My GET operations populate the Cookie just fine. When I POST the Cookie is not set. I have even tried to set the Cookie header on Before Send but I get a warning saying it is protect or not safe or something.

I still think the POST request should send the Cookie data:

                       $.ajax({
  type: 'POST',
 url: "include/page/admin/post.new.php",
 data: { var1: "abc", var2: "abc" },
 success: function(e) {
alert(e);
}
});


I am setting the cookie this way (PHP):

setcookie('loginId', $login->LoginId, time() + (86400 * 7));
setcookie('username', $username, time() + (86400 * 7));
setcookie('password', $securePassword, time() + (86400 * 7));

I notice that the cookie doesn't appear in my cookie container, but rather only the request Cookie tab on other authenticated requests.