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

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -