mirror of
https://github.com/nextcloud/server.git
synced 2026-11-30 20:18:46 +01:00
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>