Skip to main content

Module session

Module session 

Source
Expand description

Sessions and reusable session pools. Sessions and the session pool.

Expiry uses a persisted wall-clock timestamp instead of an Instant, so restarting a crawler cannot silently renew sessions. Persistence is explicit rather than AutoSaved: the live cookie jar remains authoritative instead of being duplicated behind another lock. Pools are created before crawler storage is available, so SessionPool::attach_persistence bridges that lifecycle gap instead of requiring storage in SessionPool::new.

Structs§

Session
Cookie, score, and user-data state associated with a crawling identity.
SessionConfig
Limits and scoring behavior for one session.
SessionId
Stable identifier for a crawler session.
SessionPool
A bounded collection of reusable crawler sessions.
SessionPoolOptions
Session pool capacity, creation, and persistence settings.
SessionToken
Stable token used to keep fingerprint generation consistent within a session.

Constants§

SESSION_POOL_PERSIST_KEY
Default key used to persist the session pool.