session
argument —similarly to how state
and payload
are accessed. The data made available here is captured in the HTTP request that initialised the session.
The session
argument will contain a dictionary with the following keys: id
, cookies
and headers
. Values for the last two are themselves dictionaries.
wf.session_verifier
and are run every time a user requests a session. A True
value means that the session must be accepted, a False
value means that the session must be rejected.