no - that is correct.

www.mydomain.com is technically a sub-domain to mydomain.com and is therefore treated as a separate domain as far as the cookies are concerned.

This is not a limitation with threads.