code: private function setCookieParamsInternal()
      {
          $data = $this->getCookieParams();
          if (isset($data['lifetime'], $data['path'], $data['domain'], $data['secure'], $data['httponly'])) {
              session_set_cookie_params($data['lifetime'], $data['path'], $data['domain'], $data['secure'], $data['httponly']);
          } else {
              throw new InvalidArgumentException('Please make sure cookieParams contains these elements: lifetime, path, domain, secure and httponly.');
          }
      }
docs: Sets the session cookie parameters.
  This method is called by [[open()]] when it is about to open the session.
  @throws InvalidArgumentException if the parameters are incomplete.
  @see https://secure.php.net/manual/en/function.session-set-cookie-params.php