You are here

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

Create a new SessionCookieJar object

Parameters

string $sessionKey Session key name to store the cookie: data in session

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

Overrides CookieJar::__construct

File

vendor/guzzlehttp/guzzle/src/Cookie/SessionCookieJar.php, line 23

Class

SessionCookieJar
Persists cookies in the client session

Namespace

GuzzleHttp\Cookie

Code

public function __construct($sessionKey, $storeSessionCookies = false) {
  parent::__construct();
  $this->sessionKey = $sessionKey;
  $this->storeSessionCookies = $storeSessionCookies;
  $this
    ->load();
}