<?php 
defined('C5_EXECUTE') or die(_("Access Denied."));

// Start the session
ini_set('session.use_trans_sid',0);  
session_set_cookie_params(0, str_replace(' ','%20',DIR_REL) . '/'); 
/* ini_set('session.save_path', DIR_SESSIONS); */
ini_set('session.gc_maxlifetime', SESSION_MAX_LIFETIME);

//if we've set the _postSID variable, we populate session_id using it
if (isset($_POST['ccm-session'])) {
	session_id($_POST['ccm-session']);
} else if (isset($_POST['sessionIDOverride'])) {
	session_id($_POST['sessionIDOverride']);
}

session_name(SESSION);
session_start();