I am working on a project in which i want to share the cookies among domains. I have successfully shared the cookies among subdomains but now i also want to share it on domain level. Can anyone please help me how can i achieve this.
For subdomain i did the following thing.
In app/config/session.php i changed the domain value to following.
'domain' => '.abc.com'
Then for setting cookie
Cookie::queue('email', "test@test.com", 999999, null, '.abc.com');
This sets cookie for one.abc.com and second.abc.com. Now i want to achieve same functionality but for abcd.com and xyz.com.