Skip to main content

Module session

Module session 

Source
Expand description

The state a client keeps between runs.

Formals has the customer system keep what the bank handed out: the system ID from synchronisation, and the bank and user parameter data (BPD, UPD) with their version numbers. HKVVB names the versions the client holds, and the bank sends parameter data again only when its own version is newer. SessionState is all of that in one value the caller stores; the library writes no files.

Keep the system ID: banks tie strong customer authentication exemptions to it, and a client that comes back with a new ID every run gets asked for TANs more often. Store the state after each run and hand it back the next time.

The state holds neither PIN nor TAN, but it names the user and the accounts. Keep it encrypted.

Structs§

SessionFormat
The format tag of SessionState (SESSION_STATE_FORMAT).
SessionState
What one user’s dialogs with one bank leave behind for the next run.

Constants§

SESSION_STATE_FORMAT
The format tag of a stored SessionState. Bumped on any change to its shape; no other version is read.