i Have setup 2 domains/sites in the ISPConfig on amazon Web server EC2 instance,
i have a domain named app.example.com and the other is https://www.example.com Both domains setup in ISpConfig3. so both have separate webroot and code files. I have setup some session variables on app.example.com , while on https://www.example.com i have only static contents. But in some cases i need to access the session variables from app.example.com to my top domain https://www.example.com
I have tried setting on http://app.example.com
ini_set('session.cookie_domain', '.example.com' );
session_start();
$_SESSION['user_name']= "my_session";
and then accessing $_SESSION['user_name']
on https://www.example.com
print_r($_SESSION['user_name']);
But nothing seems to be working, How can i make this to be working?.