Cross-domain cookies/sessions in Safari and all other browsers

The Problem Safari does not allow cross-domain cookies. In other words, if on, you load an iFrame with contents of and set a cookie in the iFrame, Safari will not save the cookie. This problem also occurs in IE6/7 but can be resolved by sending a P3P header.