public function FileCookieJar::__construct in Lockr 7.3
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\CookieCode
public function __construct($cookieFile, $storeSessionCookies = false) {
$this->filename = $cookieFile;
$this->storeSessionCookies = $storeSessionCookies;
if (file_exists($cookieFile)) {
$this
->load($cookieFile);
}
}