You are here

public function FileCookieJar::__construct in Auth0 Single Sign On 8.2

Create a new FileCookieJar object

Parameters

string $cookieFile File to store the cookie data:

bool $storeSessionCookies Set to true to store session cookies: in the cookie jar.

Throws

\RuntimeException if the file cannot be found or created

Overrides CookieJar::__construct

File

vendor/guzzlehttp/guzzle/src/Cookie/FileCookieJar.php, line 24

Class

FileCookieJar
Persists non-session cookies using a JSON formatted file

Namespace

GuzzleHttp\Cookie

Code

public function __construct($cookieFile, $storeSessionCookies = false) {
  parent::__construct();
  $this->filename = $cookieFile;
  $this->storeSessionCookies = $storeSessionCookies;
  if (file_exists($cookieFile)) {
    $this
      ->load($cookieFile);
  }
}