Hi Narash,
If cookie has no domain attribute, it is valid only for the exact domain to which the request that sets the cookie is addressed.This is part of http standard:
https://tools.ietf.org/html/rfc6265#section-5.2.3
As is mentioned this can be adjusted by setting domain attribute for the cookie, but this will need to be handled within code of your login implementation.