Skip to content

Conversation

@takeseem
Copy link
Contributor

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 4.x CookieSessionStore requiring two authentications to persist user CookieSessionStore requiring two authentications to persist user Oct 2, 2025
@tsegismont tsegismont self-assigned this Oct 2, 2025
@tsegismont tsegismont merged commit 2c18f46 into vert-x3:4.x Oct 2, 2025
8 checks passed
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.

2 participants