I am trying to set up the following:
auth.example.com sub1.example.com sub2.example.com
If the user visits sub1.example.com or
sub1.example.com
Use this , it works:
ini_set('session.cookie_domain', substr($_SERVER['SERVER_NAME'],strpos($_SERVER['SERVER_NAME'],"."),100));