Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 17 additions & 5 deletions config/config.sample.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

/**
* SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
* SPDX-FileCopyrightText: 2016-2026 Nextcloud GmbH and Nextcloud contributors
* SPDX-FileCopyrightText: 2016 ownCloud, Inc.
* SPDX-License-Identifier: AGPL-3.0-only
*/
Expand Down Expand Up @@ -342,12 +342,24 @@
'remember_login_cookie_lifetime' => 60 * 60 * 24 * 15,

/**
* The lifetime of a session after inactivity.
* Lifetime of sessions created without selecting "Remember me", after
* inactivity, in seconds.
Comment on lines +345 to +346
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This does not sound true to me, the value is also used for sessions where remember me is selected.
It’s just that at log out you get logged in by the remember me cookie, no?

*
* The maximum possible time is limited by the ``session.gc_maxlifetime`` php.ini setting
* which would overwrite this option if it is less than the value in the ``config.php``
* If "Remember me" is used, set ``remember_login_cookie_lifetime`` higher
* than this value to avoid earlier-than-expected remembered-login expiry.
*
* Defaults to ``60*60*24`` seconds (24 hours)
* Effective behavior also depends on related settings:
* - ``session_keepalive`` can extend active Web UI sessions via heartbeat requests.
* - ``session_relaxed_expiry`` may allow sessions to persist longer than this value.
* - ``auto_logout`` can enforce logout behavior in the Web UI.
*
* The effective maximum retention also depends on PHP settings and external
* session-backend cleanup policies, including (but not limited to) PHP's
* ``session.gc_maxlifetime`` and environment-specific cleanup behavior (e.g., distro
* cron/tmpfiles policies and handler-specific GC behavior). These may override this
* value.
*
* Defaults to ``60*60*24`` seconds (24 hours).
*/
'session_lifetime' => 60 * 60 * 24,

Expand Down
Loading