SessionOptions
Index
Properties
optionalcookieJar
optionalcreatedAt
optionalerrorScore
optionalerrorScoreDecrement
It is used for healing the session. For example: if your session is marked bad two times, but it is successful on the third attempt it's errorScore is decremented by this number.
optionalexpiresAt
Date of expiration.
optionalfingerprint
Browser / HTTP client fingerprint tied to this session. Backends use this to make repeated requests with the same session look consistent (same user-agent, headers, TLS profile). See SessionFingerprint.
optionalid
Id of session used for generating fingerprints. It is used as proxy session name.
optionallog
optionalmaxAgeSecs
Number of seconds after which the session is considered as expired.
optionalmaxErrorScore
Maximum number of marking session as blocked usage.
If the errorScore reaches the maxErrorScore session is marked as block and it is thrown away.
It starts at 0. Calling the markBad function increases the errorScore by 1.
Calling the markGood will decrease the errorScore by errorScoreDecrement
optionalmaxUsageCount
Session should be used only a limited amount of times. This number indicates how many times the session is going to be used, before it is thrown away.
optionalproxyInfo
optionalretired
Marks the session as already retired. Used when restoring a previously persisted session
so that isUsable() reflects the terminal state regardless of error score or usage count.
optionalusageCount
Indicates how many times the session has been used.
optionaluserData
Object where custom user data can be stored. For example custom headers.
Date of creation.