Small setup refactoring for getting ready for the Hub.

SVN:trunk[5232]
This commit is contained in:
Denis Flaven
2018-01-10 15:47:15 +00:00
parent dcff39da25
commit 6544659251
6 changed files with 250 additions and 171 deletions

View File

@@ -1157,7 +1157,7 @@ class UserRights
self::$m_aAdmins = array();
self::$m_aPortalUsers = array();
}
if (!isset($_SESSION))
if (!isset($_SESSION) && !utils::IsModeCLI())
{
session_name('itop-'.md5(APPROOT));
session_start();