tad\WPBrowser\Connector\WordPress::resetCookies PHP Method

resetCookies() public method

public resetCookies ( )
    public function resetCookies()
    {
        $this->cookieJar = new CookieJar();
    }

Usage Example

Example #1
0
 private function setupClient($siteDomain)
 {
     $this->client = $this->client ? $this->client : new WordPressConnector();
     $this->client->setUrl($this->siteUrl);
     $this->client->setDomain($siteDomain);
     $this->client->setRootFolder($this->config['wpRootFolder']);
     $this->client->followRedirects(true);
     $this->client->resetCookies();
     $this->setCookiesFromOptions();
 }