code: public function unsetData():void
      {
          foreach (array_keys($this->data) as $var) {
              if (!in_array($var, self::ALL_HEADERS)) {
                  unset($this->data[$var]);
              }
          }
      }
docs: Unsets all session data.