Conversation
Der zweite setWhere() hat den ersten überschrieben, dadurch hat die Abfrage für Cookie-Sessions alle Sessions gelöscht, deren letzte Aktion älter als auth_cookie_ttl ist. Bei auth_cookie_ttl = 0 wurde so jede Session nach einer Sekunde gelöscht, ein Login war nicht möglich. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
In
rex_ycom_user_session::clearExpiredSessions()überschreibt der zweitesetWhere()den ersten (rex_sql::setWhere()ersetzt die Bedingung, statt sie zu ergänzen). Die Löschabfrage für Cookie-Sessions lief dadurch ohnecookie_key IS NOT NULLund löschte alle Sessions, deren letzte Aktion länger alsauth_cookie_ttlTage zurückliegt.Mit
auth_cookie_ttl = 0wird so jede Session nach dem nächsten Sekundenwechsel gelöscht: Der Login klappt, beim nächsten Request ist man wieder abgemeldet (session expired or missing). Bei Werten ≥ 1 fällt es kaum auf.Drin seit 3c23803 (Release 4.3.0).
Fix: beide Bedingungen in einem
setWhere().Getestet auf einer 4.4.4-Installation mit
auth_cookie_ttl = 0: ohne Fix nach 2 s abgemeldet, mit Fix bleibt die Session bestehen.🤖 Generated with Claude Code