php - Share cookies among domains in laravel 5.4 -
i working on project in want share cookies among domains. have shared cookies among subdomains want share on domain level. can please me how can achieve this.
for subdomain did following thing.
in app/config/session.php changed domain value following.
'domain' => '.abc.com'
then setting cookie
cookie::queue('email', "test@test.com", 999999, null, '.abc.com');
this sets cookie one.abc.com , second.abc.com. want achieve same functionality abcd.com , xyz.com.
Comments
Post a Comment