I have domains like:
- www.domain.com
- countyName1.domain.com
- countryName2.domain.com
All these domains are using the same directory files /public_html
. I want to share session among all these domains.
I already tried these:
ini_set('session.cookie_domain', '.example.com' );
session_start();
OR
$some_name = session_name("some_name");
session_set_cookie_params(0, '/', '.some_domain.com',false,false);
session_start();
But none of them seems to be working for me.
Many Thanks.