Advertisement
reenadak

sharing session across sub-domains

Feb 20th, 2018
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.25 KB | None | 0 0
  1. // Sharing session across subdomains
  2. // added following in /vendor/autoload.php
  3.  
  4. $some_name = session_name("some_name");
  5. session_set_cookie_params(0, '/', '.dak9.com');
  6. session_start();
  7.  
  8. // For using sessions across the subfolders and sub-domains.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement