Unfortunately, this is not possible if the websites are not in the same domain. Cookies are valid only for the domain from which they were created. In addition, subdomains are considered different domains. Otherwise (remember I didn’t use a lot of php) you could pull the headers from the response and copy the cookie to the client.
source
share