Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

[stable35] fix(session): Keep remembered logins across the session timeout - #67162

Merged
DerDreschner merged 1 commit into
stable35from
backport/65959/stable35
Nov 30, 2026
Merged

DerDreschner merged 1 commit into
stable35from
backport/65959/stable35

Conversation

@backportbot

@backportbot backportbot Bot commented Nov 29, 2026

Copy link
Copy Markdown

Backport of PR #65959

@backportbot
backportbot Bot requested review from a team as code owners November 29, 2026 21:11
@backportbot
backportbot Bot requested review from Altahrim and come-nc and removed request for a team November 29, 2026 21:11
@backportbot backportbot Bot added bug 3. to review Waiting for reviews AI assisted labels Nov 29, 2026
@backportbot backportbot Bot added this to the Nextcloud 35.0.4 milestone Nov 29, 2026
A session that was idle for longer than session_lifetime is ended with a
full logout, which also deletes the remember-me cookies. The user is logged
out for good, although they asked to stay logged in and the documentation
of session_lifetime says a remembered login is transparently
re-authenticated after the session expired.

When the request carries remember-me cookies, endInactiveSession() now only
drops the session data and keeps the cookies. The remember-me login then
signs the user in again and replaces the remember-me token, as it does
whenever the session is gone. Any other session is still ended with a
logout. As this needs no database, it also applies in maintenance mode and
with a pending upgrade, and the login continues once the instance is
available again.

The remember-me login is now only attempted with cookies that are strings,
as loginWithCookie() requires. Unlocking a password-protected share only
re-issues remember-me cookies that are strings. Clients can send the
cookies as arrays, which ended in a TypeError.

Assisted-by: ClaudeCode:claude-opus-5
Assisted-by: ClaudeCode:claude-opus-5-5
Signed-off-by: David Dreschner <david.dreschner@nextcloud.com>
@DerDreschner
DerDreschner force-pushed the backport/65959/stable35 branch from 613d6ff to 6c1f826 Compare November 29, 2026 21:45
@DerDreschner
DerDreschner merged commit ce8a665 into stable35 Nov 30, 2026
154 checks passed
@DerDreschner
DerDreschner deleted the backport/65959/stable35 branch November 30, 2026 10:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants