Type Alias: Cookie
Cookie =
object
Defined in: core/src/lib/Types.ts:237
A single cookie entry in a Cookies list.
The name and value field is mandatory.
It is better to also specify the domain field, otherwise MemLab
will try to infer domain automatically.
The other fields are optional.
For concrete use case, please check out cookies.
Properties
domain?
optionaldomain?:string
Defined in: core/src/lib/Types.ts:243
Optional: Defines the domain associated with the cookie
expires?
optionalexpires?:Undefinable\<number>
Defined in: core/src/lib/Types.ts:252
Optional: Indicates when the cookie will expire, in Unix time (seconds)
httpOnly?
optionalhttpOnly?:Undefinable\<boolean>
Defined in: core/src/lib/Types.ts:254
Optional: Flag to determine if the cookie is accessible only over HTTP
name
name:
string
Defined in: core/src/lib/Types.ts:239
Mandatory: Represents the name of the cookie
path?
optionalpath?:Undefinable\<string>
Defined in: core/src/lib/Types.ts:250
Optional: Defines the path associated with the cookie
sameSite?
optionalsameSite?:Undefinable\<"Strict"|"Lax">
Defined in: core/src/lib/Types.ts:266
Optional: Determines if a cookie is transmitted with cross-site requests, offering a degree of defense against cross-site request forgery attacks.
secure?
optionalsecure?:Undefinable\<boolean>
Defined in: core/src/lib/Types.ts:261
Optional: Flag to indicate if the cookie transmission requires a secure protocol (e.g., HTTPS).
session?
optionalsession?:Undefinable\<boolean>
Defined in: core/src/lib/Types.ts:256
Optional: Flag to check if the cookie is a session cookie
url?
optionalurl?:Undefinable\<string>
Defined in: core/src/lib/Types.ts:248
Optional: Specifies the request-URI linked with the cookie setup. This can influence the cookie's default domain and path.
value
value:
string
Defined in: core/src/lib/Types.ts:241
Mandatory: Represents the value assigned to the cookie