Google Cloud Chronicle Client - Class Cookie (0.9.0)

Reference documentation and code samples for the Google Cloud Chronicle Client class Cookie.

Browser cookie.

Generated from protobuf message google.backstory.Browser.Cookie

Namespace

Google \ Backstory \ Browser

Methods

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ name string

The unique name identifying the cookie.

↳ value string

The data stored within the cookie.

↳ domain string

The domain for which the cookie is valid.

↳ path string

The URL path for which the cookie is valid.

↳ expiration_time Google\Protobuf\Timestamp

The date and time when the cookie will expire.

↳ http_only bool

Indicates if the cookie is inaccessible via client-side scripts (e.g., JavaScript).

↳ secure bool

Indicates if the cookie should only be sent over secure HTTPS connections.

↳ max_age int|string

The maximum age of the cookie in seconds.

↳ same_site int

Affects cross-site request behavior.

↳ session bool

Indicates if the cookie is persistent.

↳ partitioned bool

Shows if the cookies is stored using partitioned storage.

The unique name identifying the cookie.

Returns
Type Description
string

The unique name identifying the cookie.

Parameter
Name Description
var string
Returns
Type Description
$this

The data stored within the cookie.

Returns
Type Description
string

The data stored within the cookie.

Parameter
Name Description
var string
Returns
Type Description
$this

The domain for which the cookie is valid.

Returns
Type Description
string

The domain for which the cookie is valid.

Parameter
Name Description
var string
Returns
Type Description
$this

The URL path for which the cookie is valid.

Returns
Type Description
string

The URL path for which the cookie is valid.

Parameter
Name Description
var string
Returns
Type Description
$this

The date and time when the cookie will expire.

Returns
Type Description
Google\Protobuf\Timestamp|null

The date and time when the cookie will expire.

Parameter
Name Description
var Google\Protobuf\Timestamp
Returns
Type Description
$this

Indicates if the cookie is inaccessible via client-side scripts (e.g., JavaScript).

Returns
Type Description
bool

Indicates if the cookie is inaccessible via client-side scripts (e.g., JavaScript).

Parameter
Name Description
var bool
Returns
Type Description
$this

Indicates if the cookie should only be sent over secure HTTPS connections.

Returns
Type Description
bool

Indicates if the cookie should only be sent over secure HTTPS connections.

Parameter
Name Description
var bool
Returns
Type Description
$this

The maximum age of the cookie in seconds.

Returns
Type Description
int|string

The maximum age of the cookie in seconds.

Parameter
Name Description
var int|string
Returns
Type Description
$this

Affects cross-site request behavior.

Returns
Type Description
int Enum of type CookieSameSite.

Affects cross-site request behavior.

Parameter
Name Description
var int

Enum of type CookieSameSite.

Returns
Type Description
$this

Indicates if the cookie is persistent.

Returns
Type Description
bool

Indicates if the cookie is persistent.

Parameter
Name Description
var bool
Returns
Type Description
$this

Shows if the cookies is stored using partitioned storage.

Returns
Type Description
bool

Shows if the cookies is stored using partitioned storage.

Parameter
Name Description
var bool
Returns
Type Description
$this