It's only a guess, but you could force passing session id with GET method instead of a cookie (which is bound with a domain). The information about session would be then taken across domains.
I'm quite shure it can be done in PHPLib,as long as all the pages would use the same database to store session data, but don't know if it would work with built-in session handling.