mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
- New way to handle sessions compatible with multiple environments
SVN:trunk[1710]
This commit is contained in:
@@ -25,7 +25,16 @@
|
||||
|
||||
require_once(APPROOT.'/core/cmdbobject.class.inc.php');
|
||||
require_once(APPROOT.'/application/utils.inc.php');
|
||||
|
||||
MetaModel::Startup(ITOP_CONFIG_FILE);
|
||||
session_name('itop-'.md5(APPROOT));
|
||||
session_start();
|
||||
if (isset($_SESSION['itop_env']))
|
||||
{
|
||||
$sConfigFile = $_SESSION['itop_env'];
|
||||
}
|
||||
else
|
||||
{
|
||||
$sConfigFile = ITOP_CONFIG_FILE;
|
||||
}
|
||||
MetaModel::Startup($sConfigFile);
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user