On domain 1, I have a form that posts to domain 2
<form method="post" action="http://domain2.com/result.php">
The script result.php on domain 2 sets a cookie on domain 2 that is supposed to last until the year 2038.
setcookie('test', 'val', 2147485540, '/', '.domain2.com', false);
The cookie is being stored, but on Chrome, the expiration is set to "When I close my browser" (in other words, 0). On Firefox the expiration is set correctly.
Is there any way around this or is this a Chrome security setting regarding cross-domain posting that I'll just have to live with?