I'm trying to set cookie from my original domain to sub domain. I found a similar question and tried this solution, note that I'm setting this cookie when I'm at page www.example.com:
document.cookie = "score=10;Domain=.example.com";
And I'm trying to access this cookie from x.example.com (There is no www in subdomain) But I can not access it from subdomain. Is www part causing the problem? How can I solve it?