gitoria
All repositories: gitoria
1.9 KB
// ONE SESSION — a browser's bag on the server. A CLASS, not a hybrid, on purpose:// the language passes an instance by handle (through maps, lists, assignments and// emit payloads; an ordinary call argument copies, hence `&` at the dispatch) and// a face that logs a session in writes the session it was HANDED. On disk it is// the JSON of these members, and a file comes back as `rec > new Session()`.// THE APP'S OWN DATA GOES INTO `data`, a hybrid: `session.data.cart = …` rides along,// and an entry nobody wrote reads null — as a hybrid does. An UNDECLARED member of// an instance is not that: the language lets a write mint it on one instance and// refuses the read on another (measured 2026-09-13: `session.signupEmail` read in an// audience function on a session that never set it was an UndefinedProperty error).String id = nullNumber created = 0 // epoch msNumber seen = 0 // epoch ms of the last request or frame that presented ituser = null // whoever logged this session in, or nulldata = {} // the app's own fields, absent ones read null// THE QUEUED EMITS THIS SESSION'S BROWSERS HAVE HAD HANDLED (COMPONENTS §10): the last// `handledKept` of them, oldest first, each `{ q, ok, error }` — its stable id and the// ack it got. A replay of one of these ids is answered from here and runs no face again.handled = []// ROTATE (W120, session fixation): a face that logs this session in calls `session.rotate()`;// the framework, when the face returns, gives the session a NEW id (sessions.move), deletes the// old one, and sends the browser its new cookie. This only asks: the id changes after the face.// The flag is cleared by the move and never reaches a file.Boolean rotating = falseString issuedSig = '' // W138: the attributes (name, Domain, Path, Secure, SameSite) its cookie was last issued withNumber issuedAt = 0 // W138: epoch ms of that issuerotate() {rotating = truereturn null}
Branches
Latest commits
- 55c84779Merge branch 'gp-gate-ports' into mainGitoria
- 57af42bbREADME: point to deploy.sh for the port listmre
- d63375d2README: gate commands with explicit portsmre
- feeaa701|||PR gates: explicit ports only, deploy.sh passes themmre
- 6cc1f943Merge branch 'records-1112' into mainGitoria
- 9448c438|||PR records: LOG, missions and reports since 11-09mre
- 6dc08a8eMerge branch 'p51-public-pr-reads' into mainGitoria
- 7b88cfe0Type publicReaderOfRequest parameters (L10)Gitoria
- 2a4b3dc1|||PR Anonymous reads of public repos' pulls and statusesmre
- 21b2c141Merge branch 's25-no-session-on-login-error' into mainGitoria
- 698458e2|||PR No session for cookieless login errors: READMEmre
- cce7b785|||PR No session for cookieless login errorsmre
- 678d6303Merge branch 'v59' into mainGitoria
- 5803cf4f|||PR vendor: Hybriel set-day59 and GC budget 32 MiBmre
- 9eff6627Merge branch 'f2-api-bugs' into mainGitoria
- 26117255|||PR apps API: review comments on files with spaces in their namemre
- b8796cecMerge branch 'f1-broken-json' into mainGitoria
- 2f2959c5|||PR apps API: broken JSON body gives 400 invalid_json, not 500mre
- f7c6ca07Merge branch 'ident-chooser-selector' into mainGitoria
- 691abb8e|||PR tests: find ident identity choice without the removed .choose classmre