Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. SessionCookieJar.php

function SessionCookieJar::__construct

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 28

Class

SessionCookieJar
Persists cookies in the client session

Namespace

GuzzleHttp\Cookie

Code

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

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal