protected function clear()
    {
        $this->_redirect_times = 0;
        $this->_redirect_headers = [];
        $this->_start_time = 0;
        $this->_time = 0.000;
        if (!($this->_form_flag) & self::FROM_RETRY) {
            $this->_retried_time = 0;
        }
        $this->incremental_cookies->reset();

        // should be at the end of the clear
        $this->_form_flag = 0;
    }