Skip to content

CI trial (fork only): an anonymous request stores no session - #1

Merged
MichaelC8E merged 1 commit into
v3from
fix/an-anonymous-request-stores-no-session
Oct 12, 2026
Merged

MichaelC8E merged 1 commit into
v3from
fix/an-anonymous-request-stores-no-session

Conversation

@MichaelC8E

Copy link
Copy Markdown
Owner

Fork-only CI run of the f-auth-03 fix, so it can be read green before anything is opened upstream. Not for review.

Made with Cursor

Every request, including static files, 404s and health checks, stored
a session or set a session cookie even when nothing was ever put in
it, so session storage grew with anonymous traffic.

A session that was never stored and holds no data of its own is no
longer written and gets no cookie. That also covers a request that
only marked the session changed without leaving anything in it
(deleting a key it never had, clear(), regenerate() on an empty
session): a record with no data is not a session. A request that
stores a value, or that arrived with a session cookie for a stored
session, behaves as before, and clearing a stored session still ends
it.

python: Session.is_fresh() looks at the raw data, so a session holding
only SSO pending state is not fresh. The cookie decision is
_session_needs_cookie().

Signed-off-by: Michael <michael@codeinfinity.co.za>
@MichaelC8E
MichaelC8E merged commit d9467a0 into v3 Oct 12, 2026
9 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant