\GuzzleHttp\CookieSessionCookieJar

Persists cookies in the client session

Summary

Methods
Properties
Constants
__construct()
__destruct()
save()
No public properties found
No constants found
load()
No protected properties found
N/A
No private methods found
$sessionKey
$storeSessionCookies
N/A

Properties

$sessionKey

$sessionKey : string

Type

string — session key

$storeSessionCookies

$storeSessionCookies : boolean

Type

boolean — Control whether to persist session cookies or not.

Methods

__construct()

__construct(string  $sessionKey, boolean  $storeSessionCookies = false) 

Create a new SessionCookieJar object

Parameters

string $sessionKey

Session key name to store the cookie data in session

boolean $storeSessionCookies

Set to true to store session cookies in the cookie jar.

__destruct()

__destruct() 

Saves cookies to session when shutting down

save()

save() 

Save cookies to the client session

load()

load() 

Load the contents of the client session into the data array