i have a domain like abc.com and its subdomain download.abc.com
my inc/config.php code inside subdomain download.newhind.com
define('DOC_ROOT', realpath(dirname(__FILE__) . '/../'));
define('URL_ROOT', substr(DOC_ROOT, strlen(realpath($_SERVER['DOCUMENT_ROOT']))) . '/');
//error_reporting(E_STRICT | E_ALL);
error_reporting(E_ERROR | E_WARNING | E_PARSE);
ini_set('display_errors', 1);
fCore::enableErrorHandling('html');
fCore::enableExceptionHandling('html');
fTimestamp::setDefaultTimezone('Asia/Calcutta');
fAuthorization::setLoginPage(URL_ROOT . 'log_in');
// This prevents cross-site session transfer
#fSession::setPath(DOC_ROOT . '/storage/session/');
fSession::setPath('/hsphere/local/home/newhind/newhind.com/storage/session/');
include DOC_ROOT . '/inc/constructor_functions.php';
/**
* Automatically includes classes
*
* @throws Exception
*
* @param string $class Name of the class to load
* @return void
*/
function __autoload($class)
{
$flourish_file = DOC_ROOT . '/inc/flourish/' . $class . '.php';
if (file_exists($flourish_file)) {
return require $flourish_file;
}
$file = DOC_ROOT . '/inc/classes/' . $class . '.php';
if (file_exists($file)) {
return require $file;
}
throw new Exception('The class ' . $class . ' could not be loaded');
}
i am trying to get the session storage of my main domain(abc.com) ,but i am not getting session storage of main domain . please tell me how to get the session storage of main domain.