About Changing Cookie Domain

Hi,
I am using confluence server which has url as confluence.abc.com and I have another site which has a url of beta.abc.com.Now i need to implement cookie based authentication so that if i login in confluence i am getting JsessionID which belongs to confluence.abc.com domain. Is it possible to change the JsessionID domain to .abc.com so that i can use in all subdomains?

Thanks in advance