function osTicket($cfgId)
 {
     $this->config = Config::lookup($cfgId);
     //DB based session storage was added starting with v1.7
     if ($this->config && !$this->getConfig()->getDBVersion()) {
         $this->session = osTicketSession::start(SESSION_TTL);
     } else {
         session_start();
     }
     $this->csrf = new CSRF('__CSRFToken__');
 }