/** * startSetupSession * * TODO remove redundancy with Tinebase_Core::startCoreSession() */ public static function startSetupSession() { Tinebase_Session::setSessionBackend(); Zend_Session::start(); $setupSession = Setup_Session::getSessionNamespace(); if (isset($setupSession->setupuser)) { self::set(self::USER, $setupSession->setupuser); } if (!isset($setupSession->jsonKey)) { $setupSession->jsonKey = Tinebase_Record_Abstract::generateUID(); } self::set('jsonKey', $setupSession->jsonKey); }
/** * start core session * * @throws Exception */ public static function startCoreSession() { Tinebase_Session::setSessionBackend(); Zend_Session::start(); $coreSession = Tinebase_Session::getSessionNamespace(); if (isset($coreSession->currentAccount)) { self::set(self::USER, $coreSession->currentAccount); } if (!isset($coreSession->jsonKey)) { $coreSession->jsonKey = Tinebase_Record_Abstract::generateUID(); } self::set('jsonKey', $coreSession->jsonKey); }