code: protected function alloc() {
          if (null !== $this->session) {
              return;
          }
          if (php_sapi_name() === 'cli') {
              $this->session = new \ArrayObject();
              return;
          }
          $this->session = new SessionContainer($this->namespace);
      }
docs: Memory alloc