You are here

public function FileCookieJar::__destruct in Lockr 7.3

Saves the file when shutting down

File

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

Class

FileCookieJar
Persists non-session cookies using a JSON formatted file

Namespace

GuzzleHttp\Cookie

Code

public function __destruct() {
  $this
    ->save($this->filename);
}