Skip to content

CookieSessionStore requires twice auth on first login#2807

Closed
takeseem wants to merge 1 commit intovert-x3:masterfrom
takeseem:fix-2765
Closed

CookieSessionStore requires twice auth on first login#2807
takeseem wants to merge 1 commit intovert-x3:masterfrom
takeseem:fix-2765

Conversation

@takeseem
Copy link
Copy Markdown
Contributor

this pull for master (from pull #2784)

fix #2765: CookieSessionStore requires twice auth on first login

Calling session.value() twice in the same request caused the session data
to be corrupted when no session cookie existed. This made the first login
fail to persist the user, requiring a second authentication. The fix is to
separate initial cookie creation from subsequent cookie updates so
session.value() is only invoked once. Also adjust SessionHandlerImpl to
persist the authenticated user correctly.

Calling session.value() twice in the same request caused the session
data to be corrupted when no session cookie existed. This made the first
login fail to persist the user, requiring a second authentication. The
fix is to separate initial cookie creation from subsequent cookie
updates so session.value() is only invoked once. Also adjust
SessionHandlerImpl to persist the authenticated user correctly.
@tsegismont tsegismont changed the title fix #2765 for master CookieSessionStore requires twice auth on first login CookieSessionStore requires twice auth on first login Oct 2, 2025
@tsegismont tsegismont self-assigned this Oct 2, 2025
@tsegismont tsegismont modified the milestone: 5.1.0 Oct 2, 2025
@tsegismont
Copy link
Copy Markdown
Member

Superseded by #2811

@tsegismont tsegismont closed this Oct 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

CookieSessionStore requiring two authentications to persist user

2 participants