code: public function addAll(array $pairs): void
      {
          foreach ($pairs as $key => $value) {
              $this->add($key, $value);
          }
      }
docs: It adds the array of variables (the key-value pairs) to the session.
  @param array $pairs
  @return void