SessionCookie
Index
Properties
creation
creationIndex
domain
expires
extensions
hostOnly
httpOnly
key
lastAccessed
maxAge
path
pathIsDefault
sameSite
secure
value
Methods
canonicalizedDomain
Returns undefined | string
cdomain
Returns undefined | string
clone
Returns undefined | SessionCookie
cookieString
Returns string
expiryDate
Parameters
optionalnow: Date
Returns undefined | Date
expiryTime
Parameters
optionalnow: Date
Returns undefined | number
isPersistent
Returns boolean
setExpires
Parameters
exp: string | Date
Returns void
setMaxAge
Parameters
age: number
Returns void
toJSON
Returns Record<string, unknown>
toString
Returns string
TTL
Parameters
optionalnow: number
Returns number
validate
Returns boolean
Cookie shape used by CookieJar. Structurally compatible with
tough-cookie'sCookieclass, so atough-cookiecookie satisfies it without@crawlee/typesdepending ontough-cookieitself.