The cookie is set in the remote PHP file:

Code:
<?php
if ($_POST['ProfileID']) {
  $ProfileID = $_POST['ProfileID'];
  setcookie("ProfileID", $ProfileID, time()+3600, "/");
}
?>
The error I'm getting is with the $.post