A recent question made me post this one.
I'm working on a set of web pages that have some very simple user login, and store the user id in a cookie. Let's say that due to certain decisions which I'm in no position to overrule, the pages use several alternate domain names. I.e., the login page uses one domain name, and the page that should be able to verify whether the user is logged in could be in another domain. Of course, in most browsers, third party cookies are disabled, so setting the userid cookies for all possible domains is out of question. AFAIK, read access is outright impossible, since neither the browser sends third party cookies to the server, nor are they accessible from javascript.
Is someone aware of a workaround, apart from redirecting all page requests to a common domain name? Both server and client side solutions are welcome.
Update 1: when I say workaround, I don't necessarily mean any means of forcing cookies through. Solutions replacing cookie based authentication are also accepted, if they are simple enough.
Update 2: the domains are not in the same hierarchy, but they all map to the same IP address.